未验证 提交 a754d907 编写于 作者: T tianshuo78520a 提交者: GitHub

Fix static git diff (#37914)

* fix static git diff check

* test=document_fix
上级 cf5de26f
......@@ -324,7 +324,7 @@ function check_style() {
clang-format --version
commit_files=on
for file_name in `git diff --numstat upstream/$BRANCH |awk '{print $NF}'`;do
for file_name in `git diff --numstat ${BRANCH} |awk '{print $NF}'`;do
if ! pre-commit run --files $file_name ; then
commit_files=off
fi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册