Fix a bug introduced in 1efde92
This commit is contained in:
parent
5a406c16c5
commit
736d4b8f5a
1 changed files with 2 additions and 1 deletions
3
magit.el
3
magit.el
|
@ -559,7 +559,8 @@ out revs involving HEAD."
|
|||
;; There doesn't seem to be a way of filtering HEAD out from name-rev,
|
||||
;; so we have to do it manually.
|
||||
;; HEAD-based names are too transient to allow.
|
||||
(when (string-match "^\\(.*\\<HEAD\\)\\([~^].*\\|$\\)" name)
|
||||
(when (and (stringp name)
|
||||
(string-match "^\\(.*\\<HEAD\\)\\([~^].*\\|$\\)" name))
|
||||
(let ((head-ref (match-string 1 name))
|
||||
(modifier (match-string 2 name)))
|
||||
;; Sometimes when name-rev gives a HEAD-based name,
|
||||
|
|
Loading…
Reference in a new issue