Skip to content

Commit

Permalink
Fix, second command will not execute if the first fails
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoziol committed Apr 15, 2016
1 parent 3734784 commit 73dba22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
# Pushes the current branch to the remote "origin" (or the remote passed as the parameter) and set it to track the upstream branch
publish = "!sh -c 'git push -u ${1:-origin} $(git branch-name)' -"
# Deletes the remote version of the current branch from the remote "origin" (or the remote passed as the parameter)
unpublish = "!sh -c 'git push ${1:-origin} :$(git branch-name);git branch --unset-upstream $(git branch-name)' -"
unpublish = "!sh -c 'set -e; git push ${1:-origin} :$(git branch-name);git branch --unset-upstream $(git branch-name)' -"

# Fetch PR from GitHub by number/id
fetchpr = "!sh -c 'git fetch origin pull/$0/head:pr/$0'"
Expand Down

0 comments on commit 73dba22

Please sign in to comment.