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:
parent
29593edf42
commit
b1f4a36f58
1 changed files with 1 additions and 1 deletions
2
magit.el
2
magit.el
|
@ -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))))
|
||||
|
|
Loading…
Reference in a new issue