We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f775b5c commit 91654afCopy full SHA for 91654af
src/tests/git.rs
@@ -16,7 +16,12 @@ pub fn init() {
16
let _ = fs::rmdir_recursive(&checkout());
17
let _ = fs::rmdir_recursive(&bare());
18
// Prepare a bare remote repo
19
- git2::Repository::init_bare(&bare()).unwrap();
+ {
20
+ let bare = git2::Repository::init_bare(&bare()).unwrap();
21
+ let mut config = bare.config().unwrap();
22
+ config.set_str("user.name", "name").unwrap();
23
+ config.set_str("user.email", "email").unwrap();
24
+ }
25
26
// Initialize a fresh checkout
27
let checkout = git2::Repository::init(&checkout()).unwrap();
0 commit comments