From 54415206825777a306ef7632f3eb480aba7691bd Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sat, 10 Aug 2019 23:05:07 -0400 Subject: km/magit-branch-archive: Show archive in process buffer --- lisp/km-magit.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- cgit v1.2.3