From 3725917f020766e602a778a4573b83c5fceec80f Mon Sep 17 00:00:00 2001 From: iducn <45056973+iducn@users.noreply.github.com> Date: Sun, 28 Jun 2020 17:07:30 +0800 Subject: [PATCH] modify parameter of check_code's script (#2238) --- scripts/check_code.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/check_code.sh b/scripts/check_code.sh index 3a1b06397..e44ba55ec 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 -- GitLab