1
1

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 <michael.william.heinz@intel.com>
Signed-off-by: Michael Heinz <michael.william.heinz@intel.com>
Этот коммит содержится в:
Michael Heinz 2019-04-26 11:30:50 -04:00
родитель f1681ac6f2
Коммит 0a8fa5439c

2
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);