summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/km-magit.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/km-magit.el b/lisp/km-magit.el
index 4da1a3f..fb46525 100644
--- a/lisp/km-magit.el
+++ b/lisp/km-magit.el
@@ -242,7 +242,7 @@ argument CHOOSE-SUFFIX, prompt for a suffix to use instead of
(let ((new (replace-regexp-in-string "refs/heads/"
"refs/archive/"
branch-full)))
- (if (magit-git-success "update-ref" new branch-full)
+ (if (zerop (magit-call-git "update-ref" new branch-full))
(progn
(magit--rename-reflog-file branch-full new)
(magit-run-git "branch" "-D" branch-short))