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:
parent
efce1e54e6
commit
b2e309c9e4
1 changed files with 1 additions and 0 deletions
|
@ -59,6 +59,7 @@ pub fn hermetic_libgit2() {
|
|||
}
|
||||
|
||||
pub fn new_temp_dir() -> TempDir {
|
||||
hermetic_libgit2();
|
||||
tempfile::Builder::new()
|
||||
.prefix("jj-test-")
|
||||
.tempdir()
|
||||
|
|
Loading…
Reference in a new issue