mirror of
https://github.com/martinvonz/jj.git
synced 2025-02-05 11:05:46 +00:00
891641670c
We don't want variables from the developer's environment to affect tests. You can make tests fail if you set `XDG_CONFIG_HOME` such that `$XDG_CONFIG_HOME/jj/config.toml` exists and has e.g. an email set. The fix is to not propagate any environment variables. Thanks for @arxanas for pointing this out in #104. We still need to set `$HOME` to prevent configs from being read from the process owner's home directory (because that's what `dirs::config_dir()` seems to fall back to if `$HOME` is not set). By the way, I suspect we'd still not immune to configs from the developers home directory on Windows, because that doesn't seem to be controlled by `$HOME`. |
||
---|---|---|
.. | ||
commands.rs | ||
diff_edit.rs | ||
formatter.rs | ||
graphlog.rs | ||
lib.rs | ||
main.rs | ||
template.pest | ||
template_parser.rs | ||
templater.rs | ||
testutils.rs | ||
ui.rs |