Skip to content

Commit 77cdb66

Browse files
genevievehelselmeta-codesync[bot]
authored andcommitted
Add ability to pass eden clone args through fbclone
Summary: This diff adds the ability to pass arbitrary arguments to the underlying 'eden clone' command when using `fbclone` This provides a generic passthrough mechanism so users can specify any eden clone arguments without needing to mirror and thread each flag individually in `fbclone` Differential Revision: D89435167 fbshipit-source-id: af75d287ae97518e9c96861c92cfca5b909de7fb
1 parent 4b17b5b commit 77cdb66

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

eden/scm/lib/clone/src/lib.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,14 @@ pub fn eden_clone(
205205
}
206206
}
207207

208+
// Pass additional eden clone args from config if specified
209+
if let Ok(Some(eden_clone_args)) = config.get_opt::<String>("edenfs", "eden-clone-args") {
210+
// Split the args string and append to clone command
211+
for arg in eden_clone_args.split_whitespace() {
212+
clone_command.arg(arg);
213+
}
214+
}
215+
208216
run_eden_clone_command(&mut clone_command).context("error performing eden clone")
209217
}
210218

0 commit comments

Comments
 (0)