Survive old Gits that do not understand git name-rev --always.

* magit.el (magit-name-rev): Don't use --always.
This commit is contained in:
Marius Vollmer 2008-10-29 20:22:13 +02:00
parent 29593edf42
commit b1f4a36f58

View file

@ -205,7 +205,7 @@ Many Magit faces inherit from this one by default."
(defun magit-name-rev (rev)
(and rev
(let ((name (magit-shell "git name-rev --always --name-only %s" rev)))
(let ((name (magit-shell "git name-rev --name-only %s" rev)))
(if (or (not name) (string= name "undefined"))
rev
name))))