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:
Marius Vollmer 2009-06-07 22:03:15 +03:00
parent 6fcff5f170
commit 2c9e6d7ee4

View file

@ -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