mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
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:
parent
e808c8309c
commit
ace7209ce0
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue