ok/jj
1
0
Fork 0
forked from mirrors/jj

tests: stop libgit2 from reading configs in lib tests too

I had `init.defaultBranch = main` in my global config (just being
rolled out internally at Google, it seems), which made
`test_import_refs_reimport_head_removed()` and
`test_fetch_initial_commit()` fail. This fixes it.
This commit is contained in:
Martin von Zweigbergk 2022-10-23 10:47:27 -07:00 committed by Martin von Zweigbergk
parent efce1e54e6
commit b2e309c9e4

View file

@ -59,6 +59,7 @@ pub fn hermetic_libgit2() {
}
pub fn new_temp_dir() -> TempDir {
hermetic_libgit2();
tempfile::Builder::new()
.prefix("jj-test-")
.tempdir()