Make magit-ref-exists-p work.
* magit.el (magit-ref-exists-p): Use correct invocation and turn exit code into a boolean. (Saturday night hacking sessions are not my forte. Sundays on the other hand...)
This commit is contained in:
parent
6fcff5f170
commit
2c9e6d7ee4
1 changed files with 1 additions and 1 deletions
2
magit.el
2
magit.el
|
@ -306,7 +306,7 @@ Many Magit faces inherit from this one by default."
|
|||
nil)))
|
||||
|
||||
(defun magit-ref-exists-p (ref)
|
||||
(magit-git-exit-code "show-ref" "--verify" "--quiet" ref))
|
||||
(= (magit-git-exit-code "show-ref --verify %s" ref) 0))
|
||||
|
||||
(defun magit-read-top-dir ()
|
||||
(file-name-as-directory
|
||||
|
|
Loading…
Reference in a new issue