bin/bump-version.sh in docman-0.0.15 vs bin/bump-version.sh in docman-0.0.16
- old
+ new
@@ -55,11 +55,11 @@
git log --pretty=format:" - %s" >> CHANGES
echo "" >> CHANGES
echo "" >> CHANGES
git add VERSION CHANGES
git commit -m "Added VERSION and CHANGES files, Version bump to 0.1.0"
- git tag -a -m "Tagging version 0.1.0" "0.1.0"
+ git tag -a -m "[skip trigger] Tagging version 0.1.0" "0.1.0"
git push origin --tags
git push
fi
TAG="0.1.0"
fi
@@ -68,14 +68,16 @@
BRANCH="state_$1"
git show-ref --verify --quiet "refs/heads/${BRANCH}"
if [ $? == 0 ]; then
git checkout ${BRANCH}
else
- git checkout -b ${BRANCH}
+ git checkout --orphan ${BRANCH}
+ git rm --cached -r .
+ git clean -f -d
fi
echo "type: tag" > info.yaml
echo "version: $TAG" >> info.yaml
git add -A
- git commit -m "Changed tag to: $TAG" & git push origin ${BRANCH}
+ git commit -m "[skip trigger] Changed tag to: $TAG" & git push origin ${BRANCH}
git checkout -
echo ${TAG}
fi