branch: externals/vc-got
commit 660cf35dc5e0307c8196608a1e7fbdf2178ba32a
Author: Omar Polo <[email protected]>
Commit: Omar Polo <[email protected]>
fix list-branches regexp
---
vc-got.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/vc-got.el b/vc-got.el
index c2500bf..d3a624a 100755
--- a/vc-got.el
+++ b/vc-got.el
@@ -322,7 +322,8 @@ ROOT is the root of the repo."
(when (zerop (vc-got--call "branch" "-l"))
(let (alist)
(goto-char (point-min))
- (while (re-search-forward "^\\* \\(.+\\): \\([[:word:]]+\\)$" nil t)
+ (while (re-search-forward "^\\*?[[:space:]]+\\(.+\\):
\\([[:word:]]+\\)$"
+ nil t)
(push (cons (match-string 1) (match-string 2)) alist))
alist)))))