Append the Git branch to the version string.

Approved by:	re (gjb)
This commit is contained in:
Rui Paulo 2013-10-03 01:53:17 +00:00
parent 7c168e960a
commit d71346820f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=256014

View File

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