diff options
author | Shaun Ruffell <sruffell@digium.com> | 2010-11-11 19:32:58 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2010-11-11 19:32:58 +0000 |
commit | 6198fd4de107e930005bc6f53a947e1749202130 (patch) | |
tree | df8bc5e1b181974654558ef00c97c112e8196a96 /build_tools | |
parent | 254c020802926f14014b09e4d901fc317e561a4f (diff) |
make_version: Use 'git rev-parse' if only looking for a sha5.
Different versions of git have variability in how the log output looks.
Instead of git log, we can use git rev-parse directly.
Signed-off-by: Shaun Ruffell <sruffell@digium.com>
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9475 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'build_tools')
-rwxr-xr-x | build_tools/make_version | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build_tools/make_version b/build_tools/make_version index 488fc8c..b9bb29f 100755 --- a/build_tools/make_version +++ b/build_tools/make_version @@ -66,7 +66,7 @@ elif [ -d ${1}/.git ]; then fi # Some older versions of git do not support all the above # options. - VERSION=GIT-`git log --abbrev-commit -1 --pretty=oneline --abbrev=7 | cut -f 1 -d .`${MODIFIED} + VERSION=GIT-`git rev-parse --short --verify HEAD`${MODIFIED} fi echo ${VERSION} else |