From 83c92a1ba916ff77cdcb47e7b548371db58174d4 Mon Sep 17 00:00:00 2001 From: Joel Nothman <joel.nothman@gmail.com> Date: Wed, 21 Dec 2016 23:12:19 +1100 Subject: [PATCH] CI limit diff to commit range in flake8_diff.sh (#8097) --- build_tools/travis/flake8_diff.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_tools/travis/flake8_diff.sh b/build_tools/travis/flake8_diff.sh index a0d0255384..408580554b 100755 --- a/build_tools/travis/flake8_diff.sh +++ b/build_tools/travis/flake8_diff.sh @@ -128,7 +128,7 @@ check_files() { options="$2" # Conservative approach: diff without context (--unified=0) so that code # that was not changed does not create failures - git diff --unified=0 $COMMIT -- $files | flake8 --diff --show-source $options + git diff --unified=0 $COMMIT_RANGE -- $files | flake8 --diff --show-source $options } if [[ "$MODIFIED_FILES" == "no_match" ]]; then -- GitLab