From 21f2b9be37f4badc1919fd77456cc160fb692653 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 24 Dec 2018 23:55:44 -0500 Subject: Makefile.am: Set GIT_DIR in dist-hook --- 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 -- cgit v0.9.1