scripts/update.sh: fix checkout of correct base commit after fetching

This commit is contained in:
Matthias Schiffer 2016-08-12 09:23:07 +02:00
parent 98557891da
commit 0eac102971
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C
1 changed files with 4 additions and 1 deletions

View File

@ -16,5 +16,8 @@ for module in $GLUON_MODULES; do
git init
git config commit.gpgsign false
git branch -f base $commit 2>/dev/null || git fetch -f $repo $branch:base
if ! git branch -f base $commit 2>/dev/null; then
git fetch $repo $branch
git branch -f base $commit 2>/dev/null
fi
done