|
@@ -471,7 +471,7 @@ sub seed_camelcase_includes {
|
|
|
|
|
|
$camelcase_seeded = 1;
|
|
$camelcase_seeded = 1;
|
|
|
|
|
|
- if (-d ".git") {
|
|
|
|
|
|
+ if (-e ".git") {
|
|
my $git_last_include_commit = `git log --no-merges --pretty=format:"%h%n" -1 -- include`;
|
|
my $git_last_include_commit = `git log --no-merges --pretty=format:"%h%n" -1 -- include`;
|
|
chomp $git_last_include_commit;
|
|
chomp $git_last_include_commit;
|
|
$camelcase_cache = ".checkpatch-camelcase.git.$git_last_include_commit";
|
|
$camelcase_cache = ".checkpatch-camelcase.git.$git_last_include_commit";
|
|
@@ -499,7 +499,7 @@ sub seed_camelcase_includes {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
- if (-d ".git") {
|
|
|
|
|
|
+ if (-e ".git") {
|
|
$files = `git ls-files "include/*.h"`;
|
|
$files = `git ls-files "include/*.h"`;
|
|
@include_files = split('\n', $files);
|
|
@include_files = split('\n', $files);
|
|
}
|
|
}
|