From 5ea1a4ab3b97cd5f878af04b24abe9ec2d93088f Mon Sep 17 00:00:00 2001 From: itchyny Date: Fri, 15 Sep 2023 20:08:20 +0900 Subject: [PATCH] Disable core.autocrlf on Windows to prevent submodule diffs (fix #2886) (#2888) --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ba6449c6..5ed53d4e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -207,6 +207,9 @@ jobs: run: shell: msys2 {0} steps: + - name: Prepare git config + run: git config --system core.autocrlf false + shell: bash - name: Clone repository uses: actions/checkout@v3 with: @@ -240,7 +243,7 @@ jobs: - name: Test run: | make check VERBOSE=yes - git diff --exit-code --ignore-submodules + git diff --exit-code - name: Upload Test Logs if: ${{ failure() }} uses: actions/upload-artifact@v3