aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/conf/newvers.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/conf/newvers.sh b/sys/conf/newvers.sh
index 6482417b3ebe..605e61181dec 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