build system: try harder to checkout the right version
And actually fail a build if that doesn't work. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
123f3ef7ec
commit
7923507e76
@ -46,9 +46,9 @@ git_checkout_library() {
|
||||
|
||||
if [ ! "$current_sha" = "$target_sha" ] ; then
|
||||
git fetch origin
|
||||
if ! git checkout "$version" ; then
|
||||
if ! git checkout -f "$version" ; then
|
||||
echo "Can't find the right tag in $name - giving up"
|
||||
return 1
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
popd
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user