From d71346820f1c1035fde8f4a0d8194401128925cd Mon Sep 17 00:00:00 2001 From: Rui Paulo Date: Thu, 3 Oct 2013 01:53:17 +0000 Subject: [PATCH] Append the Git branch to the version string. Approved by: re (gjb) --- sys/conf/newvers.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/conf/newvers.sh b/sys/conf/newvers.sh index d84e034ad6d4..263eb4c76ee4 100644 --- a/sys/conf/newvers.sh +++ b/sys/conf/newvers.sh @@ -159,6 +159,10 @@ if [ -n "$git_cmd" ] ; then git=" ${git}" fi fi + git_b=`$git_cmd rev-parse --abbrev-ref HEAD` + if [ -n "$git_b" ] ; then + git="${git}(${git_b})" + fi if $git_cmd --work-tree=${SYSDIR}/.. diff-index \ --name-only HEAD | read dummy; then git="${git}-dirty"