newvers.sh: restore reporting branch names

It got removed arguably without much discussion in the commit which
added gitup support.
This commit is contained in:
Mateusz Guzik 2021-01-22 13:00:24 +00:00
parent e808c8309c
commit ace7209ce0

View File

@ -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