]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
update-version.sh: Explicitly specify git directory.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 7 Jan 2016 20:02:18 +0000 (22:02 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 7 Jan 2016 20:02:18 +0000 (22:02 +0200)
update-version.sh

index 5a3db800e8b0d4bec9fa6dfafa0624ad5c2b65f0..e610f2192b13f521b8cc9dcb7316fcae149c3dc9 100644 (file)
@@ -39,7 +39,7 @@ fi
 # Lets generate the dovecot-version.h
 [ -f "${BUILDDIR}/${VERSION_HT}" ] && rm -f "${BUILDDIR}/${VERSION_HT}"
 if true; then
-       GITID=`git rev-parse --short HEAD`
+       GITID=`git --git-dir ${SRCDIR}/.git rev-parse --short HEAD`
        cat > "${BUILDDIR}/${VERSION_HT}" <<EOF
 #ifndef DOVECOT_VERSION_H
 #define DOVECOT_VERSION_H