diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-09-28 23:40:47 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 15:07:29 -0500 |
commit | 34da75652d30d930fe47df09d44aa92b9f4da905 (patch) | |
tree | aef54b00317458be2079feffba7aa8f08ab7ff35 /source4 | |
parent | cabc0955d96808eadf7b2573ece6f21df05129eb (diff) | |
download | samba-34da75652d30d930fe47df09d44aa92b9f4da905.tar.gz samba-34da75652d30d930fe47df09d44aa92b9f4da905.tar.bz2 samba-34da75652d30d930fe47df09d44aa92b9f4da905.zip |
r25419: fix generation of git revision calculation
metze
(This used to be commit 7f70d5e7b901cd04412d111073e459ee756e1d46)
Diffstat (limited to 'source4')
-rwxr-xr-x | source4/script/mkversion.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/script/mkversion.sh b/source4/script/mkversion.sh index 91c7894cdb..828f67d71b 100755 --- a/source4/script/mkversion.sh +++ b/source4/script/mkversion.sh @@ -111,7 +111,7 @@ if test x"${SAMBA_VERSION_IS_SVN_SNAPSHOT}" = x"yes";then if test x"${HAVEVER}" != x"yes" -a -d "${SOURCE_DIR}../.git";then HAVEGIT=no GIT_INFO=`git show --abbrev-commit HEAD 2>/dev/null` - TMP_REVISION=`echo -e "${GIT_INFO}" | grep 'commit ' | sed 1q |sed -e 's/commit \([0-9a-f]*\).*/\1/'` + TMP_REVISION=`echo -e "${GIT_INFO}" | sed 1q | grep 'commit ' | sed -e 's/commit \([0-9a-f]*\).*/\1/'` if test -n "$TMP_REVISION";then HAVEGIT=yes HAVEVER=yes |