Permalink
Browse files

allow to specify branch for build-deb.sh script

  • Loading branch information...
x42 committed Jul 27, 2012
1 parent dc1a898 commit 76205c271406f753cbb0244a472c54361f0de1b9
Showing with 3 additions and 1 deletion.
  1. +3 −1 build-deb.sh
View
@@ -5,10 +5,12 @@ DEBRELEASE=$(head -n1 debian/changelog | cut -d ' ' -f 2 | sed 's/[()]*//g')
TMPDIR=/tmp/setbfree-${DEBRELEASE}
rm -rf ${TMPDIR}
+GITBRANCH=${GITBRANCH:-master}
+
echo "debian -export-ignore" >> .git/info/attributes
git-buildpackage \
- --git-upstream-branch=master --git-debian-branch=master \
+ --git-upstream-branch=$GITBRANCH --git-debian-branch=$GITBRANCH \
--git-upstream-tree=branch \
--git-export-dir=${TMPDIR} --git-cleaner=/bin/true \
--git-force-create \

0 comments on commit 76205c2

Please sign in to comment.