From 01b7165df58333bbff48439952afdc166fdf5ef9 Mon Sep 17 00:00:00 2001 From: Allen Byrne <50328838+byrnHDF@users.noreply.github.com> Date: Sat, 7 May 2022 18:19:21 -0500 Subject: Use git command to get branch name (#1748) --- bin/bbrelease | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/bbrelease b/bin/bbrelease index 90cb72b..6120e37 100755 --- a/bin/bbrelease +++ b/bin/bbrelease @@ -239,7 +239,7 @@ if [ X$revmode = Xyes ]; then # Copy old version of config/lt_vers.am, since it's hard to # "undo" changes to it. cp config/lt_vers.am $tmpdir - branch=`git branch | grep '*' | awk '{print $NF}'` + branch=`git symbolic-ref -q --short HEAD` revision=`git rev-parse --short HEAD` # Set version information to m.n.r-r$revision. # (h5vers does not correctly handle just m.n.r-$today.) -- cgit v0.12