Skip to content

Commit 202c80b

Browse files
committed
Fix git diff issue
1 parent 2bea5b6 commit 202c80b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ci-build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,11 @@ time (cd "${SRC_DIR}" && ./autogen.sh)
164164
time "${SRC_DIR}/configure" $config_flags
165165
if [ -z "${SKIP_FORMAT_CHECK}" ]; then
166166
make format
167-
d=`git diff | wc -l`
167+
d=`git -C "${SRC_DIR}" diff | wc -l`
168168
if [ $d -ne 0 ]
169169
then
170170
echo "clang format must be run as part of the pull request, current diff:"
171-
git diff
171+
git -C "${SRC_DIR}" diff
172172
exit 1
173173
fi
174174
fi

0 commit comments

Comments
 (0)