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:
parent
fa17f2aaed
commit
f6403a998f
@ -74,7 +74,7 @@ distcheck-hook:
|
|||||||
|
|
||||||
gen_start_date = 2011-12-01T00:00:00
|
gen_start_date = 2011-12-01T00:00:00
|
||||||
gen-ChangeLog:
|
gen-ChangeLog:
|
||||||
if test -d $(top_srcdir)/.git; then \
|
if test -e $(top_srcdir)/.git; then \
|
||||||
(cd $(top_srcdir) && \
|
(cd $(top_srcdir) && \
|
||||||
$(GITLOG_TO_CHANGELOG) --append-dot --tear-off \
|
$(GITLOG_TO_CHANGELOG) --append-dot --tear-off \
|
||||||
--amend=build-aux/git-log-fix \
|
--amend=build-aux/git-log-fix \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user