diff --git a/scripts/check_code.sh b/scripts/check_code.sh index 3a1b063971bd27662c5e63c9a723087063cdc6d3..e44ba55ecb840773e03f1547462f6d59a154f7c7 100644 --- a/scripts/check_code.sh +++ b/scripts/check_code.sh @@ -43,7 +43,7 @@ function check_style(){ trap 'abort' 0 pre-commit install commit_files=on - for file_name in `git diff --numstat | awk '{print $NF}'`;do + for file_name in `git diff --numstat upstream/$BRANCH| awk '{print $NF}'`;do if [[ ! `pre-commit run --files $file_name` ]]; then git diff commit_files=off