Skip to content

Commit

Permalink
Fix to not use user's git config in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lusingander committed Aug 1, 2024
1 parent 3d84d66 commit 49234b4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -967,6 +967,8 @@ impl GitRepository<'_> {
.env("GIT_COMMITTER_NAME", "Committer Name")
.env("GIT_COMMITTER_EMAIL", "[email protected]")
.env("GIT_COMMITTER_DATE", datetime_str)
.env("GIT_CONFIG_NOSYSTEM", "true")
.env("HOME", "/dev/null")
.output()
.unwrap_or_else(|_| panic!("failed to execute git {}", args.join(" ")))
}
Expand Down

0 comments on commit 49234b4

Please sign in to comment.