From 191c7f01a29a4c517d316508370bdcd5a42cadd5 Mon Sep 17 00:00:00 2001 From: Michael Heinz Date: Fri, 26 Apr 2019 11:30:50 -0400 Subject: [PATCH] make-authors.pl script not compatible with being a submodule. make-authors.pl checks that .git exists and is a directory before getting the git log - but when a repo is checked out as a submodule of a larger repository, .git is not a directory, it's just a text file. This can cause make-authors.pl to terminate inappropriately. Author: Michael Heinz Signed-off-by: Michael Heinz (cherry picked from commit 0a8fa5439c626c01a68fd9cebda8f00597500f51) --- contrib/dist/make-authors.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/dist/make-authors.pl b/contrib/dist/make-authors.pl index 92df0a4b23..fc9f7c161d 100755 --- a/contrib/dist/make-authors.pl +++ b/contrib/dist/make-authors.pl @@ -29,7 +29,7 @@ GetOptions("skip-ok" => \$skip_ok, # directory and make life easier. chdir($srcdir); -if (! -d ".git") { +if (! -e ".git") { if ($skip_ok == 0) { print STDERR "I don't seem to be in a git repo :(\n"; exit(1);