diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2022-05-07 23:20:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-07 23:20:20 (GMT) |
commit | 555e79d05f3fb778c9345b3abd4e55a1f177df90 (patch) | |
tree | f521c4471b2ee14500e6bbf8a929c5ea4e454043 /bin | |
parent | 0aa985655eb21832da5c4574a7ff8edf51e0bf42 (diff) | |
download | hdf5-555e79d05f3fb778c9345b3abd4e55a1f177df90.zip hdf5-555e79d05f3fb778c9345b3abd4e55a1f177df90.tar.gz hdf5-555e79d05f3fb778c9345b3abd4e55a1f177df90.tar.bz2 |
Use git command to get branch name (#1750)
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/bbrelease | 2 |
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.) |