Skip to content

Commit 20e103a

Browse files
committed
Try again with non-sparse and using origin prefix
1 parent 535819c commit 20e103a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ jobs:
1212
runs-on: windows-latest
1313
steps:
1414
- uses: actions/checkout@v4
15+
with:
16+
# Force a non-shallow checkout, so that clang-format can access source history to compare against
17+
# See https://github.com/actions/checkout for more details.
18+
fetch-depth: 0
1519

1620
- name: Find vcvars64.bat
1721
run: |
@@ -30,7 +34,7 @@ jobs:
3034
exit /b %ERRORLEVEL%
3135
)
3236
33-
git clang-format refs/remotes/origin/master --binary "%CLANG_FORMAT%" --style file -- cppwinrt/*.h cppwinrt/*.cpp fast_fwd/*.h fast_fwd/*.cpp prebuild/*.h prebuild/*.cpp scratch/*.h scratch/*.cpp strings/*.h strings/*.cpp test/*.h test/*.cpp vsix/*.h vsix/*.cpp
37+
git clang-format origin/master --binary "%CLANG_FORMAT%" --style file -- cppwinrt/*.h cppwinrt/*.cpp fast_fwd/*.h fast_fwd/*.cpp prebuild/*.h prebuild/*.cpp scratch/*.h scratch/*.cpp strings/*.h strings/*.cpp test/*.h test/*.cpp vsix/*.h vsix/*.cpp
3438
3539
if %ERRORLEVEL% neq 0 (
3640
echo ::error::This branch contains changes that have not been formatted with 'clang-format',

0 commit comments

Comments
 (0)