Use version for RC branch name instead of branch

4.6.1-RC20151130T2142 versus 4.6-RC20151130T2142
This commit is contained in:
Remi Bergsma 2015-11-30 22:01:11 +01:00
parent df3ce171e8
commit 7d7420fd1e
1 changed files with 2 additions and 6 deletions

View File

@ -127,12 +127,8 @@ mv $tmpfilenm debian/changelog
git clean -f
#create a RC branch
RELEASE_BRANCH="RC"`date +%Y%m%dT%H%M`
if [ "$branch" = "master" ]; then
BRANCHNAME=$version-$RELEASE_BRANCH
else
BRANCHNAME=$branch-$RELEASE_BRANCH
fi
RC_BRANCH_SUFFIX="RC"`date +%Y%m%dT%H%M`
BRANCHNAME=$version-$RC_BRANCH_SUFFIX
git branch $BRANCHNAME
git checkout $BRANCHNAME