summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2022-05-07 23:19:21 (GMT)
committerGitHub <noreply@github.com>2022-05-07 23:19:21 (GMT)
commit01b7165df58333bbff48439952afdc166fdf5ef9 (patch)
treeac24a17110fe23dbc8d5f5689da0eb392ef80276 /bin
parentcea0dc4565312f519c26de17b987b75652ab95df (diff)
downloadhdf5-01b7165df58333bbff48439952afdc166fdf5ef9.zip
hdf5-01b7165df58333bbff48439952afdc166fdf5ef9.tar.gz
hdf5-01b7165df58333bbff48439952afdc166fdf5ef9.tar.bz2
Use git command to get branch name (#1748)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/bbrelease2
1 files changed, 1 insertions, 1 deletions
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.)