Skip to content

Commit

Permalink
Merge pull request #175 from laoshu133/master
Browse files Browse the repository at this point in the history
fix(deploy): fix git ref verify
  • Loading branch information
Unitech authored Apr 13, 2020
2 parents 243763e + 03872b8 commit 4025d4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deploy
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4025d4f

Please sign in to comment.