summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2017-07-22 15:48:29 (EDT)
committer P. J. McDermott <pj@pehjota.net>2017-07-22 15:48:29 (EDT)
commit9b4ac23a9be90d40053b5e3ebb5511933a0e00ae (patch)
treeb0772a7e6a859672accba2b226561f3cd199b3fa
parentd1ef8fd76d2f07a26867458922919593fc6e78b4 (diff)
Makefile.am: Set GIT_DIR in dist-hook
-rw-r--r--Makefile.am3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 2207add..206a9c1 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -96,7 +96,8 @@ dist-hook:
if [ -d '$(srcdir)/.git' ]; then \
printf 'Generated file. Do not edit.\n\n' \
>'$(distdir)/ChangeLog~'; \
- git log --stat --color=never >>'$(distdir)/ChangeLog~'; \
+ GIT_DIR='$(srcdir)/.git' git log --stat --color=never \
+ >>'$(distdir)/ChangeLog~'; \
mv '$(distdir)/ChangeLog~' '$(distdir)/ChangeLog'; \
fi