We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e71b65a commit 3b74a2cCopy full SHA for 3b74a2c
src/repo.rs
@@ -3624,16 +3624,14 @@ mod tests {
3624
3625
#[test]
3626
fn smoke_config_write_and_read() {
3627
- let td = TempDir::new().unwrap();
3628
- let path = td.path();
3629
-
3630
- let repo = Repository::init(path).unwrap();
+ let (td, repo) = crate::test::repo_init();
3631
3632
let mut config = repo.config().unwrap();
3633
3634
config.set_bool("commit.gpgsign", false).unwrap();
3635
3636
- let c = fs::read_to_string(path.join(".git").join("config")).unwrap();
+ let c = fs::read_to_string(td.path().join(".git").join("config"))
+ .unwrap();
3637
3638
assert!(c.contains("[commit]"));
3639
assert!(c.contains("gpgsign = false"));
0 commit comments