Create new branch instead of tag in make_new_version

This commit is contained in:
Igor Canadi 2014-04-29 12:17:34 -04:00
parent e525bb16ea
commit de825e7307

View file

@ -28,17 +28,19 @@ fi
ROCKSDB_VERSION=$1 ROCKSDB_VERSION=$1
GIT_BRANCH=`git rev-parse --abbrev-ref HEAD` GIT_BRANCH=`git rev-parse --abbrev-ref HEAD`
echo $GIT_BRANCH
if [ $GIT_BRANCH != "master" ]; then if [ $GIT_BRANCH != "master" ]; then
echo "Error: Current branch is '$GIT_BRANCH', Please switch to master branch." echo "Error: Current branch is '$GIT_BRANCH', Please switch to master branch."
exit 1
fi fi
title "Adding new tag for this release ..." title "Adding new tag for this release ..."
TAG="$ROCKSDB_VERSION.fb" BRANCH="$ROCKSDB_VERSION.fb"
$GIT tag -a "$TAG" -m "RocksDB $ROCKSDB_VERSION" $GIT co -b $BRANCH
# Setting up the proxy for remote repo access # Setting up the proxy for remote repo access
title "Pushing new tag to remote repo ..." title "Pushing new branch to remote repo ..."
$GIT push origin --tags git push origin --set-upstream $BRANCH
title "Tag $TAG is pushed to github; if you want to delete it, please run" title "Branch $BRANCH is pushed to github;"
title "git tags -d $TAG && git push origin :refs/tags/$TAG"