Skip to content

Commit 3ceecf6

Browse files
committed
Remove explicit "python" as cpplint.py is executable
Follow-up to diffblue#433 as suggested by @peterschrammel.
1 parent c2d7554 commit 3ceecf6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.githooks/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ do
4040
stagedFiles="$stagedFiles $tmpStaging/$file"
4141
done
4242

43-
output=$(cd $gitRoot; python scripts/cpplint.py $stagedFiles 2>&1)
43+
output=$(cd $gitRoot; scripts/cpplint.py $stagedFiles 2>&1)
4444
retval=$?
4545

4646
if [ $retval -ne 0 ]

scripts/run_lint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ for file in $diff_files; do
8989
# Run the linting script and filter by the filter we've build
9090
# of all the modified lines
9191
# The errors from the linter go to STDERR so must be redirected to STDOUT
92-
result=`python $script_folder/cpplint.py $file 2>&1 | { grep -E "$lint_grep_filter" || true; }`
92+
result=`$script_folder/cpplint.py $file 2>&1 | { grep -E "$lint_grep_filter" || true; }`
9393

9494
# Providing some errors were relevant we print them out
9595
if [ "$result" ]

0 commit comments

Comments
 (0)