From ace7209ce04d0e4dc0e84d5e2eb27fc762e67a01 Mon Sep 17 00:00:00 2001 From: Mateusz Guzik Date: Fri, 22 Jan 2021 13:00:24 +0000 Subject: [PATCH] newvers.sh: restore reporting branch names It got removed arguably without much discussion in the commit which added gitup support. --- sys/conf/newvers.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/conf/newvers.sh b/sys/conf/newvers.sh index 6482417b3eb..605e61181de 100644 --- a/sys/conf/newvers.sh +++ b/sys/conf/newvers.sh @@ -258,6 +258,10 @@ if [ -n "$git_cmd" ] ; then git="c${git_cnt}-g${git}" fi fi + git_b=$($git_cmd rev-parse --abbrev-ref HEAD) + if [ -n "$git_b" -a "$git_b" != "HEAD" ] ; then + git="${git_b}-${git}" + fi if git_tree_modified; then git="${git}-dirty" modified=yes