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

Function atomic_repo_dir

atomic-cli/src/commands/git/verify_receive.rs:327–333  ·  view source on GitHub ↗

A closed Atomic repository directory: the writable handle is dropped before the verifier opens its own read-only handle (single redb lock).

()

Source from the content-addressed store, hash-verified

325 /// A closed Atomic repository directory: the writable handle is dropped
326 /// before the verifier opens its own read-only handle (single redb lock).
327 fn atomic_repo_dir() -> TempDir {
328 let dir = TempDir::new().unwrap();
329 let _repo = Repository::init(dir.path()).unwrap();
330 // The receiving boundary is also a Git repository (hook deployment).
331 git2::Repository::init(dir.path()).unwrap();
332 dir
333 }
334
335 #[test]
336 fn empty_input_fails_closed() {

Calls 3

initFunction · 0.50
unwrapMethod · 0.45
pathMethod · 0.45