mirror of
https://github.com/facebook/rocksdb.git
synced 2024-11-25 22:44:05 +00:00
Create new branch instead of tag in make_new_version
This commit is contained in:
parent
e525bb16ea
commit
de825e7307
|
@ -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"
|
|
||||||
|
|
Loading…
Reference in a new issue