Skip to content

Commit 8c365ed

Browse files
Fixed branch display when remote is empty
1 parent 1a4ac43 commit 8c365ed

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@
8888

8989
# parse branch
9090
branch=$(__parse "s/^## (HEAD \(no branch\))$/\1/p")
91-
branch=${branch:-$(__parse "s/^## No commits yet on (.*)$/\1/p")}
92-
branch=${branch:-$(__parse "s/^## (.*)[\.]{3}[^ ]*.*$/\1/p")} # branch...remote
91+
branch=${branch:-$(__parse "s/^## No commits yet on ([^\.]*).*$/\1/p")}
92+
branch=${branch:-$(__parse "s/^## ([^\.]*)[\.]{3}.*$/\1/p")} # branch...remote
9393
branch=${branch:-$(__parse "s/^## (.*)[^ ]*.*$/\1/p")} # branch
9494

9595
# parse push state

0 commit comments

Comments
 (0)