Skip to content

Commit

Permalink
[CodeStyle] fix renamed files not being monitored by Codestyle Check (P…
Browse files Browse the repository at this point in the history
  • Loading branch information
SigureMo committed Dec 9, 2022
1 parent a988eec commit 67795d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/codestyle/pre_commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ if ! [[ $(python -V 2>&1 | awk '{print $2}' | awk -F '.' '{print $1$2}') -ge 36
exit 1
fi

diff_files=$(git diff --numstat ${BRANCH} | awk '{print $NF}')
diff_files=$(git diff --name-only --diff-filter=ACMR ${BRANCH})
num_diff_files=$(echo "$diff_files" | wc -l)
echo -e "diff files between pr and ${BRANCH}:\n${diff_files}"

Expand Down

0 comments on commit 67795d4

Please sign in to comment.