From 0782e032d1e4f46abe750614386bd95f2bab26d6 Mon Sep 17 00:00:00 2001 From: Fabro Date: Mon, 16 Mar 2026 05:36:09 +0000 Subject: [PATCH] fabro(01KKTJ5WK5X7PC65KPRF3G2FQC): solve (success) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fabro-Run: 01KKTJ5WK5X7PC65KPRF3G2FQC Fabro-Completed: 3 Fabro-Checkpoint: 62ed1957ae5789aa547f43bfd992f21d60d08dd8 ⚒️ Generated with [Fabro](https://fabro.sh) --- docs/execution/run-configuration.mdx | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/docs/execution/run-configuration.mdx b/docs/execution/run-configuration.mdx index 27c330da9..324cf1365 100644 --- a/docs/execution/run-configuration.mdx +++ b/docs/execution/run-configuration.mdx @@ -141,6 +141,24 @@ timeout_ms = 60000 Each command must exit with status 0. If any command fails or times out, the run aborts before the workflow starts. +#### Cloning into the current directory + +When cloning a repository into the current working directory (`.`), the destination must be empty. If you need to clone over an existing checkout, use a conditional to handle this: + +```toml title="run.toml" +[setup] +commands = ["git clone https://github.com/django/django.git . || (git fetch origin && git reset --hard)"] +``` + +Alternatively, clone into a subdirectory: + +```toml title="run.toml" +[setup] +commands = ["git clone https://github.com/django/django.git repo"] +``` + +Then reference `repo/` in your workflow prompts and scripts. + ### `[sandbox]` Configure how agent tools (bash, file edits) are executed. @@ -488,4 +506,4 @@ Use `--preflight` to validate a run config without executing it: ```bash fabro run run.toml --preflight -``` +``` \ No newline at end of file