MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / make_bare_remote

Function make_bare_remote

atomic-cli/tests/it/git_binding_cb6c_test.rs:286–300  ·  view source on GitHub ↗
(temp: &TempDir)

Source from the content-addressed store, hash-verified

284}
285
286fn make_bare_remote(temp: &TempDir) -> std::path::PathBuf {
287 let remote_dir = temp.path().join("remote.git");
288 fs::create_dir_all(&remote_dir).expect("remote dir");
289 let git_init = Command::new("git")
290 .args([
291 "init",
292 "--bare",
293 "--initial-branch=master",
294 remote_dir.to_str().unwrap(),
295 ])
296 .output()
297 .expect("init bare");
298 assert!(git_init.status.success(), "bare init failed");
299 remote_dir
300}
301
302#[test]
303fn fresh_clone_resurrects_the_exact_closure_through_the_published_binding() {

Calls 3

pathMethod · 0.45
outputMethod · 0.45
unwrapMethod · 0.45

Tested by

no test coverage detected