From 3da5de545e034aa5fea82c7bced68c5b4f06fe94 Mon Sep 17 00:00:00 2001 From: Daan Hoogland Date: Mon, 23 Dec 2013 14:35:29 +0100 Subject: [PATCH] create a (mini-)branch instead of creating a commit to revert --- tools/build/build_asf.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) mode change 100755 => 100644 tools/build/build_asf.sh diff --git a/tools/build/build_asf.sh b/tools/build/build_asf.sh old mode 100755 new mode 100644 index 6170cd50df4..02a5a27d13c --- a/tools/build/build_asf.sh +++ b/tools/build/build_asf.sh @@ -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"