force pristine-tar branch to latest version from origin

This commit is contained in:
Hans-Christoph Steiner 2018-05-18 16:10:30 +02:00
parent 188035f0e3
commit 38ad096a13
1 changed files with 3 additions and 4 deletions

View File

@ -20,10 +20,9 @@ if [[ ! -f $lockfile ]] ; then
build-essential dpkg-dev fakeroot git-buildpackage pristine-tar $BUILD_DEPENDS
apt-get -qy autoremove --purge
dpkg-checkbuilddeps
echo "ensure pristine-tar branch exists"
git branch -a
git remote -v
git branch --track pristine-tar origin/pristine-tar || true
echo "ensure pristine-tar branch exists and is current"
git fetch --all || true
git checkout -B pristine-tar origin/pristine-tar
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