mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-06 23:57:22 +02:00
Fix the format check script by applying it to the previous commit
Rather than just to local changes, which doesn't work as intended
This commit is contained in:
parent
52a99a2102
commit
53d15292c9
@ -3,7 +3,7 @@
|
||||
wget https://llvm.org/svn/llvm-project/cfe/trunk/tools/clang-format/git-clang-format
|
||||
chmod +x git-clang-format
|
||||
|
||||
CLANG_FORMAT_OUTPUT=$(./git-clang-format --diff)
|
||||
CLANG_FORMAT_OUTPUT=$(./git-clang-format HEAD^ HEAD --diff)
|
||||
if [[ ! $CLANG_FORMAT_OUTPUT == "no modified files to format" ]]; then
|
||||
echo "Failed clang format check:"
|
||||
echo "${CLANG_FORMAT_OUTPUT}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user