aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Bo ├śrsted Andresen <zlin@exherbo.org> 2008-06-16 09:36:24 +0200
committerAvatar Bo ├śrsted Andresen <zlin@exherbo.org> 2008-06-16 09:36:24 +0200
commit64a55151656dd5b92113b08fd7c1214f26d4b2e7 (patch)
tree6617689be52a6f3821a543bfaea815f904aceb7e
parent4133b00c519b5ea2b8c3ecdf9ca328e984026d88 (diff)
downloadpaludis-64a55151656dd5b92113b08fd7c1214f26d4b2e7.tar.gz
paludis-64a55151656dd5b92113b08fd7c1214f26d4b2e7.tar.xz
Find the git head if GIT_DIR is set.
-rw-r--r--configure.ac4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 6b84e66..2f89a1b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1277,12 +1277,12 @@ AC_SUBST([BUILDHOST])
BUILDDATE=`date +%Y-%m-%dT%H:%M:%S%z`
AC_SUBST([BUILDDATE])
-if test -d "${ac_top_srcdir:-./}/.git" ; then
+if test -d "${GIT_DIR:-${ac_top_srcdir:-./}/.git}" ; then
GITHEAD=`git describe 2>/dev/null`
if test -z ${GITHEAD} ; then
GITHEAD=`git rev-parse HEAD`
fi
- if test -n "`git diff-index --name-only HEAD`" ; then
+ if test -n "`git diff-index -m --name-only HEAD`" ; then
GITHEAD=${GITHEAD}-dirty
fi
else