mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +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
|
||||
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…
Reference in a new issue