bin/bump-version.sh in docman-0.0.32 vs bin/bump-version.sh in docman-0.0.33
- old
+ new
@@ -64,11 +64,13 @@
fi
TAG="0.1.0"
fi
if [ -n "$1" ]; then
+ git fetch
BRANCH="state_$1"
- git show-ref --verify --quiet "refs/heads/${BRANCH}"
+ #git show-ref --verify --quiet "refs/heads/${BRANCH}"
+ git ls-remote --exit-code . origin/state_stable &> /dev/null
if [ $? == 0 ]; then
git checkout ${BRANCH}
git pull
else
git checkout --orphan ${BRANCH}