Don't use refs/heads/ prefix when checking out branches.
* magit.el (magit-list-interesting-refs): Here.
This commit is contained in:
parent
e2fdbc2d01
commit
1183c3af94
1 changed files with 2 additions and 1 deletions
3
magit.el
3
magit.el
|
@ -379,7 +379,8 @@ Many Magit faces inherit from this one by default."
|
|||
(if (string-match "[^ ]+ +\\(.*\\)" line)
|
||||
(let ((ref (match-string 1 line)))
|
||||
(cond ((string-match "refs/heads/\\(.*\\)" ref)
|
||||
(push (cons (match-string 1 ref) ref) refs))
|
||||
(let ((branch (match-string 1 ref)))
|
||||
(push (cons branch branch) refs)))
|
||||
((string-match "refs/tags/\\(.*\\)" ref)
|
||||
(push (cons (format "%s (tag)" (match-string 1 ref)) ref)
|
||||
refs))
|
||||
|
|
Loading…
Reference in a new issue