small cleanups

This commit is contained in:
Hans-Christoph Steiner 2018-05-18 15:37:42 +02:00
parent 4cd308deaa
commit 2693459488
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#!/bin/bash
if [ "$CI_COMMIT_REF_NAME" == "upstream" ] || [ "$CI_COMMIT_REF_NAME" == "pristine-tar" ]; then
if [ "$CI_COMMIT_REF_NAME" == "upstream" ] || [ "$CI_COMMIT_REF_NAME" == "pristine-tar" ]; then
echo No builds run on the $CI_COMMIT_REF_NAME branch, exiting
exit 0
fi
@ -24,7 +24,7 @@ if [[ ! -f $lockfile ]] ; then
git branch -a
git remote -v
git branch --track pristine-tar origin/pristine-tar || true
echo "make master branch current for gbp"
echo "make $CI_COMMIT_REF_NAME branch current for gbp"
git checkout -B "$CI_COMMIT_REF_NAME" "$CI_COMMIT_SHA"
if [ -z "$CI_COMMIT_TAG" ]; then
gbp buildpackage -uc -us --git-debian-branch="$CI_COMMIT_REF_NAME"