Skip to content

Commit

Permalink
Undo non-sparse checkout. Try using refs syntax for master commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dmachaj committed Dec 6, 2024
1 parent 5cbe129 commit 535819c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
# Force a non-shallow checkout, so that clang-format can access source history to compare against
# See https://github.com/actions/checkout for more details.
fetch-depth: 0

- name: Find vcvars64.bat
run: |
Expand All @@ -34,7 +30,7 @@ jobs:
exit /b %ERRORLEVEL%
)
git clang-format 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
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
if %ERRORLEVEL% neq 0 (
echo ::error::This branch contains changes that have not been formatted with 'clang-format',
Expand Down

0 comments on commit 535819c

Please sign in to comment.