summaryrefslogtreecommitdiff
path: root/src/env.rs
diff options
context:
space:
mode:
authorThomas Otto <th1000s@posteo.net>2024-06-24 19:26:28 +0200
committerGitHub <noreply@github.com>2024-06-24 13:26:28 -0400
commitf5b37173fe88a62e37208a9587a0ab4fec0ef107 (patch)
tree6742d4289eb1bf154d034a3b675fd94929eaba80 /src/env.rs
parent0f8a2f0786d56e9395b7e7f244f356bfdab562e8 (diff)
Don't read git files when --no-gitconfig is given + unused variables (#1728)
* Fix unused variables * Don't read git files when --no-gitconfig is given Despite starting delta with `--no-gitconfig`, strace still shows that `.git/config` etc. files are accessed. By no longer doing that it is very clear that no config options are read from there.
Diffstat (limited to 'src/env.rs')
-rw-r--r--src/env.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/env.rs b/src/env.rs
index 8c169bc..49c7b21 100644
--- a/src/env.rs
+++ b/src/env.rs
@@ -77,6 +77,8 @@ pub mod tests {
env::set_var("DELTA_FEATURES", feature);
let env = DeltaEnv::init();
assert_eq!(env.features, Some(feature.into()));
+ // otherwise `current_dir` is not used in the test cfg:
+ assert_eq!(env.current_dir, env::current_dir().ok());
}
#[test]