Function git::testutil::with_temp_bare_repository
source · [−]pub fn with_temp_bare_repository<F>(callback: F) where
F: FnOnce(Repository) -> Result<()>, Expand description
Provide a bare repository for testing in a temporary directory.
Panics
If the repository cannot be created for any reason, this function will panic.