Fix to support git worktree.
authorNIIBE Yutaka <gniibe@fsij.org>
Wed, 13 Jan 2016 08:22:37 +0000 (17:22 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Wed, 13 Jan 2016 08:44:46 +0000 (17:44 +0900)
* Makefile.am: Use -e for testing .git.

--
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
(backport commit of 96237b9a63a50aed1884cb06f84279b977d6a8fa)

Makefile.am

index 5dca9bd..1c6311b 100644 (file)
@@ -82,7 +82,7 @@ gen_start_date = 2011-12-01T06:00:00
 .PHONY: gen-ChangeLog
 gen-ChangeLog:
        set -e;                                                         \
-       if test -d $(top_srcdir)/.git; then                             \
+       if test -e $(top_srcdir)/.git; then                             \
          (cd $(top_srcdir) &&                                          \
            $(GITLOG_TO_CHANGELOG) --append-dot --tear-off              \
            --amend=scripts/git-log-fix                                 \