create a (mini-)branch instead of creating a commit to revert

This commit is contained in:
Daan Hoogland 2013-12-23 14:35:29 +01:00
parent dad4249498
commit 3da5de545e

9
tools/build/build_asf.sh Executable file → Normal file
View File

@ -102,6 +102,11 @@ esac
git clean -f
#create a RC branch
RELEASE_BRANCH="RC" + `date +%Y%m%dT%H%M`
git branch $branch-$RELEASE_BRANCH
echo 'commit changes'
git commit -a -s -m "Updating pom.xml version numbers for release $version"
export commitsh=`git show HEAD | head -n 1 | cut -d ' ' -f 2`
@ -164,8 +169,4 @@ if [ "$committosvn" == "yes" ]; then
svn commit -m "Committing release candidate artifacts for $version to dist/dev/cloudstack in preparation for release vote"
fi
echo 'revert version changes'
cd $sourcedir
git revert --no-edit $commitsh
echo "completed. use commit-sh of $commitsh when starting the VOTE thread"