buildscript: fix fetch step

This commit is contained in:
Fabian Bläse 2021-06-04 00:27:22 +02:00
parent 8f7f2920a3
commit d773fb1ed1
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ checkout_git(){
# Select desired commit and remove local changes (-f)
if ! $MYGIT checkout -f "$COMMITID" ; then
echo "commitid not found trying to fetch new commits"
$MYGIT pull && $MYGIT checkout "$COMMITID"
$MYGIT fetch --all && $MYGIT checkout "$COMMITID"
fi
else
echo "wrong remote or not an git repo at all -> deleting whole directory"