From b3beac42cb82a0f33a99b8bd8da00734857b6e20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Vanicat?= Date: Fri, 9 Jul 2010 11:10:50 +0200 Subject: [PATCH] Handle 7 and 8 char small sha Otherwise this lead to an error in branch view mode. --- magit.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/magit.el b/magit.el index 051c2924..5d5d16b7 100644 --- a/magit.el +++ b/magit.el @@ -4175,7 +4175,7 @@ With prefix force the removal even it it hasn't been merged." "\\(.+?\\) +" ; branch name "\\(?:" - "\\([0-9a-fA-F]\\{7\\}\\) " ; sha1 + "\\([0-9a-fA-F]\\{7,8\\}\\) " ; sha1 "\\|\\(-> \\)" ; or the pointer to a ref "\\)"