diff options
Diffstat (limited to '.git-hooks')
-rwxr-xr-x | .git-hooks/pre-commit | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.git-hooks/pre-commit b/.git-hooks/pre-commit index e25532bb0662..e859919fa566 100755 --- a/.git-hooks/pre-commit +++ b/.git-hooks/pre-commit @@ -133,7 +133,7 @@ sub check_style($) chomp $filename; if ($filename =~ /\.($src)$/ and !exists($blacklist_names->{$filename})) { - if (! -x $clang_format) + if (!defined($clang_format)) { my $version = ClangFormat::get_wanted_version(); my $opt_lo = ClangFormat::get_own_directory(); |