Skip to content

Commit

Permalink
improve function op/git-push-remote
Browse files Browse the repository at this point in the history
  • Loading branch information
sillykelvin committed Sep 4, 2013
1 parent 435d1c1 commit 6b3c55a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion op-git.el
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ it will be created."
repo-dir
(concat "git push " remote-repo " " branch ":" branch)
t)))
(when (string-match "fatal" output)
(when (or (string-match "fatal" output)
(string-match "error" output))
(error "Failed to push branch '%s' to remote repository '%s'."
branch remote-repo))))

Expand Down

0 comments on commit 6b3c55a

Please sign in to comment.