From 335c31441bfcb29d51fa94a2d5d844b0b46c19ab Mon Sep 17 00:00:00 2001 From: Fabro Date: Mon, 16 Mar 2026 05:38:06 +0000 Subject: [PATCH] fabro(01KKTJ9CYVN0N7JHQ93W89S61D): solve (success) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fabro-Run: 01KKTJ9CYVN0N7JHQ93W89S61D Fabro-Completed: 3 Fabro-Checkpoint: 5de04c73539fe43f2dc12d792e36af8a08df5ca4 ⚒️ Generated with [Fabro](https://fabro.sh) --- lib/crates/fabro-exe/src/lib.rs | 4 ++-- lib/crates/fabro-ssh/src/lib.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/crates/fabro-exe/src/lib.rs b/lib/crates/fabro-exe/src/lib.rs index 74efc9cd4..9bb010d9b 100644 --- a/lib/crates/fabro-exe/src/lib.rs +++ b/lib/crates/fabro-exe/src/lib.rs @@ -278,7 +278,7 @@ impl ExeSandbox { { let branch = params.branch.as_deref().unwrap_or("main"); let fallback_script = format!( - "cd {WORKING_DIRECTORY} && git init && git remote add origin {} && git fetch origin && git checkout {}", + "cd {WORKING_DIRECTORY} && rm -rf .git && git init && git remote add origin {} && git fetch origin && git checkout {}", shell_quote(&clone_url), shell_quote(branch), ); @@ -1809,4 +1809,4 @@ mod tests { "glob filter should be properly escaped, got: {inner}", ); } -} +} \ No newline at end of file diff --git a/lib/crates/fabro-ssh/src/lib.rs b/lib/crates/fabro-ssh/src/lib.rs index d5c5bac7a..3eeb71508 100644 --- a/lib/crates/fabro-ssh/src/lib.rs +++ b/lib/crates/fabro-ssh/src/lib.rs @@ -209,7 +209,7 @@ impl SshSandbox { { let branch = params.branch.as_deref().unwrap_or("main"); let fallback_script = format!( - "cd {} && git init && git remote add origin {} && git fetch origin && git checkout {}", + "cd {} && rm -rf .git && git init && git remote add origin {} && git fetch origin && git checkout {}", shell_quote(working_dir), shell_quote(&clone_url), shell_quote(branch), @@ -1354,4 +1354,4 @@ mod tests { let sandbox = sandbox_with_mock(MockSshRunner::new()); assert_eq!(sandbox.resolve_path("/tmp/file.txt"), "/tmp/file.txt"); } -} +} \ No newline at end of file