summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index b36ddd8..9db0d38 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -155,7 +155,8 @@ dist-hook:
if [ -d '$(srcdir)/.git' ]; then \
printf 'Generated file. Do not edit.\n\n' \
>'$(distdir)/ChangeLog~'; \
- git log --stat >>'$(distdir)/ChangeLog~'; \
+ GIT_DIR='$(srcdir)/.git' git log --stat \
+ >>'$(distdir)/ChangeLog~'; \
mv '$(distdir)/ChangeLog~' '$(distdir)/ChangeLog'; \
fi