Skip to content

Commit 36420d0

Browse files
committed
fix(git): Relax the branch regex
It's a complicated pattern: https://stackoverflow.com/a/12093994 so it may be best to just fetch whatever git status returns (until the end of line)
1 parent d8e5717 commit 36420d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libvcs/git.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def extract_status(value):
6464
branch.head
6565
[\W]+
6666
(?P<branch_head>
67-
[/.\w-]*
67+
.*
6868
)
6969
7070
)?
@@ -74,7 +74,7 @@ def extract_status(value):
7474
branch.upstream
7575
[\W]+
7676
(?P<branch_upstream>
77-
[/.\w-]*
77+
.*
7878
)
7979
)?
8080
(

0 commit comments

Comments
 (0)