Skip to content

Commit

Permalink
Merge pull request #2 from danieldietrich/dd/parse-branch-fix
Browse files Browse the repository at this point in the history
Parse branch fix
  • Loading branch information
danieldietrich committed Dec 5, 2023
2 parents fd808f9 + f8a1596 commit c43b4b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@
# parse branch
branch=$(__parse "s/^## (HEAD \(no branch\))$/\1/p")
branch=${branch:-$(__parse "s/^## No commits yet on (.*)$/\1/p")}
branch=${branch:-$(__parse "s/^## ([^ \.]*).*$/\1/p")}
branch=${branch:-$(__parse "s/^## (.*)[\.]{3}[^ ]*.*$/\1/p")} # branch...remote
branch=${branch:-$(__parse "s/^## (.*)[^ ]*.*$/\1/p")} # branch

# parse push state
remote=$(__parse "s/^## .*[\.]{3}([^ ]*).*$/\1/p")
Expand Down

0 comments on commit c43b4b1

Please sign in to comment.