Commit ec83b616a71d76cc062371339472ed66ba405824
Committed by
Linus Torvalds
1 parent
49d3d6c37a
Exists in
master
and in
16 other branches
get_maintainer: fix detection of git repository
Since git v1.7.7, the .git directory can be a file when, for example, the kernel is a submodule of another git super project. So, the check "-d .git" is not working anymore in this case. Using a more generic check like "-e .git" corrects this behaviour. Signed-off-by: Richard Genoud <richard.genoud@gmail.com> Cc: Andy Whitcroft <apw@canonical.com> Cc: Joe Perches <joe@perches.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
scripts/get_maintainer.pl
... | ... | @@ -95,7 +95,7 @@ |
95 | 95 | |
96 | 96 | my %VCS_cmds_git = ( |
97 | 97 | "execute_cmd" => \&git_execute_cmd, |
98 | - "available" => '(which("git") ne "") && (-d ".git")', | |
98 | + "available" => '(which("git") ne "") && (-e ".git")', | |
99 | 99 | "find_signers_cmd" => |
100 | 100 | "git log --no-color --follow --since=\$email_git_since " . |
101 | 101 | '--numstat --no-merges ' . |