test: the archive check's own git gets a plain Windows path (P11c)
check / check (push) Waiting to run
portable-macos / portable (macos-latest) (push) Waiting to run
portable-windows / portable (windows-latest) (push) Waiting to run
two-user / two-user (push) Waiting to run

local.rs's archive_git handed git the canonical \\?\ path the product's
git already no longer sees. Same helper (root::plain_path). The other
Command::new("git") tests are Unix-only files (backups.rs, format_upgrade,
open_while_held) or use paths from tempfile, not canonicalize.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HS8WZziDnyxunC23MUxrLp
This commit is contained in:
swaitsandClaude Fable 5.1 committed 2026-10-30 05:58:11 -06:00
1 parent be0132b667
commit 73804ac8ba
1 file changed
+5 -1
+5 -1
View File
@@ -3171,7 +3171,11 @@ mod tests {
/// git, on the books' own archive: what it said.
fn archive_git(dir: &Path, args: &[&str]) -> String {
let out = std::process::Command::new("git")
.arg(format!("--git-dir={}", dir.join("archive.git").display()))
.arg(format!(
"--git-dir={}",
// A canonical path on Windows carries `\\?\`, which git refuses.
ledger_store::root::plain_path(&dir.join("archive.git")).display()
))
.args(args)
.output()
.unwrap();