Skip to content

Commit 0a8fa54

Browse files
author
Michael Heinz
committed
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>
1 parent f1681ac commit 0a8fa54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/dist/make-authors.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
# directory and make life easier.
3030
chdir($srcdir);
3131

32-
if (! -d ".git") {
32+
if (! -e ".git") {
3333
if ($skip_ok == 0) {
3434
print STDERR "I don't seem to be in a git repo :(\n";
3535
exit(1);

0 commit comments

Comments
 (0)