From 8b93757d6619b2012c5ce28f1d00550982795f1a Mon Sep 17 00:00:00 2001 From: RAprogramm Date: Mon, 27 Jul 2026 09:21:46 +0700 Subject: [PATCH] #292 fix: keep non-ASCII paths literal in the mutants diff --- .github/workflows/mutants.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/mutants.yml b/.github/workflows/mutants.yml index 5cc0fc7..e731801 100644 --- a/.github/workflows/mutants.yml +++ b/.github/workflows/mutants.yml @@ -127,10 +127,13 @@ jobs: with: tool: cargo-mutants,cargo-nextest + # `core.quotePath` off keeps non-ASCII paths literal; with it on, + # git escapes them and cargo-mutants rejects the whole diff — the + # wiki pages are named in Russian, Chinese and Korean. - name: Compute the diff env: BASE_SHA: ${{ github.event.pull_request.base.sha }} - run: git diff "$BASE_SHA"...HEAD > pr.diff + run: git -c core.quotePath=false diff "$BASE_SHA"...HEAD > pr.diff - name: Run cargo-mutants on the diff run: cargo mutants --no-shuffle --jobs 2 --in-diff pr.diff --output mutants.out