Skip to content

Commit 0702b60

Browse files
committed
force fetch to prefer remote version of deploy branch in case of conflict
1 parent ced5c1c commit 0702b60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ if ! git diff --exit-code --quiet --cached; then
3232
exit 1
3333
fi
3434

35-
git fetch origin $deploy_branch:$deploy_branch
35+
git fetch --force origin $deploy_branch:$deploy_branch
3636

3737
#make deploy_branch the current branch
3838
git symbolic-ref HEAD refs/heads/$deploy_branch

0 commit comments

Comments
 (0)