Don't use refs/heads/ prefix when checking out branches.

* magit.el (magit-list-interesting-refs): Here.
This commit is contained in:
Marius Vollmer 2009-06-06 14:52:05 +03:00
parent e2fdbc2d01
commit 1183c3af94

View file

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