summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2018-12-24 23:55:44 (EST)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2018-12-24 23:55:44 (EST)
commit21f2b9be37f4badc1919fd77456cc160fb692653 (patch)
tree04ee1497487f933af195e92fd6c97db734613f9a
parente5fae068fa2780bd10b8ff26797e8d9a6ab30315 (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 79143a1..158f609 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -175,7 +175,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