Skip to content

test: set core.autocrlf=false in init_repo to fix CRLF mismatch#30

Closed
cst8t wants to merge 1 commit into
mainfrom
codex/fix-windows-line-ending-issue-in-tests
Closed

test: set core.autocrlf=false in init_repo to fix CRLF mismatch#30
cst8t wants to merge 1 commit into
mainfrom
codex/fix-windows-line-ending-issue-in-tests

Conversation

@cst8t
Copy link
Copy Markdown
Owner

@cst8t cst8t commented May 28, 2026

Motivation

  • Prevent Git on Windows from normalizing LF to CRLF during test patch application by disabling core.autocrlf for repositories created by the test helper.

Description

  • Add git(path, &["config", "core.autocrlf", "false"]); to init_repo() in src-tauri/tests/git.rs so test repos keep Unix line endings.

Testing

  • Ran cargo test --manifest-path src-tauri/Cargo.toml import_patch_applies_to_working_tree, which was blocked by a missing system dependency (glib-2.0 / pkg-config) and could not complete.
  • Ran cargo fmt --manifest-path src-tauri/Cargo.toml --check, which reported unrelated rustfmt diffs in the repository.
  • Ran git diff --check, which reported no issues.

Codex Task

@cst8t cst8t closed this May 28, 2026
@cst8t cst8t deleted the codex/fix-windows-line-ending-issue-in-tests branch May 28, 2026 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant