From d1ccc12dd1dee34faae52c7b325048ea801599fd Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 24 Jan 2012 16:41:46 +0000 Subject: Generate ChangeLog correctly when out-of-tree --- Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 04073b4..0f410a5 100644 --- a/Makefile.am +++ b/Makefile.am @@ -60,10 +60,10 @@ cross-test-client: dist-hook: chmod u+w $(distdir)/ChangeLog if test -d $(top_srcdir)/.git; then \ - if git log --stat > $(distdir)/ChangeLog; then \ + if GIT_DIR=$(top_srcdir)/.git git log --stat > $(distdir)/ChangeLog; then \ : ; \ else \ - git log > $(distdir)/ChangeLog; \ + GIT_DIR=$(top_srcdir)/.git git log > $(distdir)/ChangeLog; \ fi; \ fi -- cgit v1.2.1