build: Fix generation of ChangeLog on secondary working trees

* Makefile.am (gen-ChangeLog): Use test -e instead of test -d to check
for git working trees.
--

In secondary working trees (created with `git worktree add ...`) .git
is a file referencing the original .git directory.
This commit is contained in:
Ingo Klöcker 2025-01-15 14:44:36 +01:00
parent fa17f2aaed
commit f6403a998f
No known key found for this signature in database
GPG Key ID: D6A17A6F69A4BA6A

View File

@ -74,7 +74,7 @@ distcheck-hook:
gen_start_date = 2011-12-01T00:00:00
gen-ChangeLog:
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=build-aux/git-log-fix \