Update run.sh

This commit is contained in:
Manevolent 2022-12-17 01:21:28 -07:00 committed by GitHub
parent 6c70a7ef59
commit 8059c8789c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

4
run.sh
View File

@ -29,14 +29,14 @@ do
continue
fi
latest_commit=`git log "--format=%G? %H" | grep ^G | head -n 1 | cut -d' ' -f2`
latest_commit=`git log "--format=%G? %H" origin/master | grep ^G | head -n 1 | cut -d' ' -f2`
if test -z $latest_commit; then
sleep $delay
continue
fi
git reset --hard >> $log 2>&1
git checkout $latest_commit >> $log 2>&1
git checkout $latest_commit -f >> $log 2>&1
if [ $? -ne 0 ]; then
echo "Git checkout failed. For more details, see $log"
sleep $delay