From bdf3c77e7299a2d036cc1016c77a5aa76f230fb9 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Thu, 7 Jan 2016 22:02:18 +0200 Subject: [PATCH] update-version.sh: Explicitly specify git directory. --- update-version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update-version.sh b/update-version.sh index 5a3db800e8..e610f2192b 100644 --- a/update-version.sh +++ b/update-version.sh @@ -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}" <