Handle 7 and 8 char small sha

Otherwise this lead to an error in branch view mode.
This commit is contained in:
Rémi Vanicat 2010-07-09 11:10:50 +02:00 committed by Phil Jackson
parent bf14e965ba
commit b3beac42cb

View file

@ -4175,7 +4175,7 @@ With prefix force the removal even it it hasn't been merged."
"\\(.+?\\) +" ; branch name "\\(.+?\\) +" ; branch name
"\\(?:" "\\(?:"
"\\([0-9a-fA-F]\\{7\\}\\) " ; sha1 "\\([0-9a-fA-F]\\{7,8\\}\\) " ; sha1
"\\|\\(-> \\)" ; or the pointer to a ref "\\|\\(-> \\)" ; or the pointer to a ref
"\\)" "\\)"