diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2022-05-07 23:20:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-07 23:20:46 (GMT) |
commit | 2d440eab17a3b5afd0eb313d93a7e425fe91d677 (patch) | |
tree | 4c1079a1be5eb65a1c386780f7b6d1b159b1a5ac | |
parent | 74c19ef1810ce8644e6369fa45d691f3126cc0b6 (diff) | |
download | hdf5-2d440eab17a3b5afd0eb313d93a7e425fe91d677.zip hdf5-2d440eab17a3b5afd0eb313d93a7e425fe91d677.tar.gz hdf5-2d440eab17a3b5afd0eb313d93a7e425fe91d677.tar.bz2 |
Use git command to get branch name (#1751)
-rwxr-xr-x | bin/bbrelease | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/bbrelease b/bin/bbrelease index 10d9310..ab578d7 100755 --- a/bin/bbrelease +++ b/bin/bbrelease @@ -268,7 +268,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.) |