From 03872b83e201b23bf0c1a884ffc7e0f81f92ed6c Mon Sep 17 00:00:00 2001 From: laoshu133 Date: Wed, 27 Feb 2019 01:36:07 +0800 Subject: [PATCH] fix(deploy): fix git ref verify --- deploy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy b/deploy index af2fe1f..ac0a282 100755 --- a/deploy +++ b/deploy @@ -251,7 +251,7 @@ deploy() { hook pre-deploy || abort pre-deploy hook failed - if run "cd $path/source && git rev-parse --quiet --verify $branch" > /dev/null; then + if run "cd $path/source && git cat-file -t $branch" > /dev/null; then log fast forward $branch run "cd $path/source && git checkout $branch && git pull origin $branch" test $? -eq 0 || abort git pull failed