mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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
1 changed files with 2 additions and 2 deletions
|
@ -46,9 +46,9 @@ git_checkout_library() {
|
||||||
|
|
||||||
if [ ! "$current_sha" = "$target_sha" ] ; then
|
if [ ! "$current_sha" = "$target_sha" ] ; then
|
||||||
git fetch origin
|
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"
|
echo "Can't find the right tag in $name - giving up"
|
||||||
return 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
popd
|
popd
|
||||||
|
|
Loading…
Reference in a new issue