Skip to content

Commit 4025d4f

Browse files
authored
Merge pull request #175 from laoshu133/master
fix(deploy): fix git ref verify
2 parents 243763e + 03872b8 commit 4025d4f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

deploy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ deploy() {
251251

252252
hook pre-deploy || abort pre-deploy hook failed
253253

254-
if run "cd $path/source && git rev-parse --quiet --verify $branch" > /dev/null; then
254+
if run "cd $path/source && git cat-file -t $branch" > /dev/null; then
255255
log fast forward $branch
256256
run "cd $path/source && git checkout $branch && git pull origin $branch"
257257
test $? -eq 0 || abort git pull failed

0 commit comments

Comments
 (0)