Update run.sh
This commit is contained in:
2
run.sh
2
run.sh
@@ -5,7 +5,7 @@ source /opt/mysqlbu/settings.conf
|
||||
cd /opt/mysqlbu
|
||||
#echo ""
|
||||
|
||||
if [ "`git log --pretty=%H ...refs/heads/master^ | head -n 1 >/dev/null`" != "`git ls-remote origin -h refs/heads/master |cut -f1 >/dev/null`" ]; then
|
||||
if [ "`git log --pretty=%H ...refs/heads/master^ | head -n 1`" != "`git ls-remote origin -h refs/heads/master |cut -f1 >/dev/null`" ]; then
|
||||
git fetch origin master >/dev/null
|
||||
git reset --hard origin/master >/dev/null
|
||||
git reflog expire --expire=now --all >/dev/null
|
||||
|
||||
Reference in New Issue
Block a user