aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2008-06-15 20:20:45 +0100
committerAvatar David Leverton <levertond@googlemail.com> 2008-06-15 20:20:45 +0100
commit45fdd2d362529c25d71632b057909809e122e593 (patch)
treebd737e8724f5c26416077f202295587b4578342e
parente2b61bbf82bca1e7a583aad77d86743ffa6ef4d0 (diff)
downloadpaludis-45fdd2d362529c25d71632b057909809e122e593.tar.gz
paludis-45fdd2d362529c25d71632b057909809e122e593.tar.xz
Also find the git head if GIT_DIR is set.
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index b4c5919..395a843 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1277,7 +1277,7 @@ 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`