diff options
author | theuni <theuni-nospam-@xbmc.org> | 2011-03-21 14:52:15 -0400 |
---|---|---|
committer | theuni <theuni-nospam-@xbmc.org> | 2011-03-21 14:52:15 -0400 |
commit | 1996df56e4228e49bc8b7371a98ecb39c1390e6f (patch) | |
tree | 375e485839491d4df88f49bcf61cd08452f7e278 /tools/buildbot/gitrev-posix | |
parent | e6dc213359a202708e165ef52af47c0e1920f976 (diff) |
changed: use supported '-n 1' param instead for determining revision string.
The '-1' param works, but only because it works at some deeper level,
and is much more likely to break.
Diffstat (limited to 'tools/buildbot/gitrev-posix')
-rwxr-xr-x | tools/buildbot/gitrev-posix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/buildbot/gitrev-posix b/tools/buildbot/gitrev-posix index 9cec3d7d2b..dd593f1917 100755 --- a/tools/buildbot/gitrev-posix +++ b/tools/buildbot/gitrev-posix @@ -7,7 +7,7 @@ if [ "$?" != "0" ]; then echo "Unknown" exit 1 fi -git --no-pager log --abbrev=7 -1 --pretty=format:"%h %ci" HEAD | awk '{gsub("-", "");print $2"-"$1}' 2>/dev/null +git --no-pager log --abbrev=7 -n 1 --pretty=format:"%h %ci" HEAD | awk '{gsub("-", "");print $2"-"$1}' 2>/dev/null if [ "$?" != "0" ]; then echo "Unknown" exit 1 |