mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-09-24 00:51:19 +00:00
fabro(01KKTJ9CYVN0N7JHQ93W89S61D): solve (success)
Fabro-Run: 01KKTJ9CYVN0N7JHQ93W89S61D
Fabro-Completed: 3
Fabro-Checkpoint: 5de04c7353
⚒️ Generated with [Fabro](https://fabro.sh)
This commit is contained in:
parent
bb5f291d80
commit
335c31441b
2 changed files with 4 additions and 4 deletions
|
|
@ -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}",
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue