From f8a1596e4bd1931571328729c961a47ab6882ca9 Mon Sep 17 00:00:00 2001 From: Daniel Dietrich Date: Tue, 5 Dec 2023 20:09:56 +0100 Subject: [PATCH] Parse branch fix --- docs/index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/index.html b/docs/index.html index 41d0d5b..99eda04 100644 --- a/docs/index.html +++ b/docs/index.html @@ -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")