with_temp_repository

Function with_temp_repository 

Source
pub fn with_temp_repository<F>(callback: F)
where F: FnOnce(Repository),
Expand description

Provides a new repository instance in a temporary directory for testing that contains an initial empty commit.

ยงPanics

If the repository cannot be created for any reason, this function will panic.