diff options
| author | Thomas Otto <th1000s@posteo.net> | 2024-06-24 19:26:28 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-24 13:26:28 -0400 |
| commit | f5b37173fe88a62e37208a9587a0ab4fec0ef107 (patch) | |
| tree | 6742d4289eb1bf154d034a3b675fd94929eaba80 /src/env.rs | |
| parent | 0f8a2f0786d56e9395b7e7f244f356bfdab562e8 (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.rs | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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] |
