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:
Dirk Hohndel 2019-01-09 08:08:59 -08:00
parent 123f3ef7ec
commit 7923507e76

View file

@ -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