buildscript: fix fetch step #153

Closed
fbl wants to merge 1 commits from fbl:fetch into master

View File

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