未验证 提交 3725917f 编写于 作者: I iducn 提交者: GitHub

modify parameter of check_code's script (#2238)

上级 c4a65f1e
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册