Skip to content

Commit 0bebe52

Browse files
committed
Respect env variables when running gix
1 parent bcdce6e commit 0bebe52

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/plumbing/main.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,12 @@ pub fn main() -> Result<()> {
106106
};
107107
mapping.full.modify(to_match_settings);
108108
mapping.reduced.modify(to_match_settings);
109-
let mut repo = gix::ThreadSafeRepository::discover_opts(repository, Default::default(), mapping)
110-
.map(gix::Repository::from)?;
109+
let mut repo = gix::ThreadSafeRepository::discover_with_environment_overrides_opts(
110+
repository,
111+
Default::default(),
112+
mapping,
113+
)
114+
.map(gix::Repository::from)?;
111115
if !config.is_empty() {
112116
repo.config_snapshot_mut()
113117
.append_config(config.iter(), gix::config::Source::Cli)

0 commit comments

Comments
 (0)