From 1183c3af94997ce7340c1ec69cf47122b8716e31 Mon Sep 17 00:00:00 2001 From: Marius Vollmer Date: Sat, 6 Jun 2009 14:52:05 +0300 Subject: [PATCH] Don't use refs/heads/ prefix when checking out branches. * magit.el (magit-list-interesting-refs): Here. --- magit.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/magit.el b/magit.el index 665eb911..0f7ce79a 100644 --- a/magit.el +++ b/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))