Skip to content

Commit 22daf92

Browse files
committed
Fix git tests locally.
These tests failed if GIT env vars are set locally.
1 parent a525f54 commit 22daf92

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: octobot/tests/git_helper/temp_git.rs

+4
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ impl TempGit {
2222
std::env::set_var("HOME", &home);
2323
std::env::set_var("XDG_CONFIG_HOME", &home);
2424

25+
// These will interfere with tests run locally
26+
std::env::remove_var("GIT_AUTHOR_NAME");
27+
std::env::remove_var("GIT_AUTHOR_EMAIL");
28+
2529
let dir = tempdir().expect("create temp dir for git_test.rs");
2630

2731
let repo_dir = dir.path().join("repo");

0 commit comments

Comments
 (0)