r25418: fix generation of git revision calculation
authorStefan Metzmacher <metze@samba.org>
Fri, 28 Sep 2007 23:39:32 +0000 (23:39 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:31:04 +0000 (12:31 -0500)
metze

source/script/mkversion.sh

index 8155c452124973e331495136bfafeeb768b26c66..ac4064ea2989d3239cf5f4a64ff0e7d91b2c83ae 100755 (executable)
@@ -107,7 +107,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