Skip to content

Commit 7d42446

Browse files
committed
Assure credential-helpers show their error stream in the terminal.
This restores the previous behaviour, which by default is disabled now.
1 parent 3cd6f54 commit 7d42446

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/plumbing/main.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ use gitoxide::shared::pretty::prepare_and_run;
1313
use gitoxide_core as core;
1414
use gitoxide_core::{pack::verify, repository::PathsOrPatterns};
1515
use gix::bstr::{io::BufReadExt, BString};
16+
use gix::config::tree::Key;
1617

1718
use crate::plumbing::{
1819
options::{
@@ -107,6 +108,14 @@ pub fn main() -> Result<()> {
107108
} else {
108109
opts.cli_overrides(config.clone())
109110
}
111+
.config_overrides([
112+
gix::config::tree::gitoxide::Credentials::HELPER_STDERR
113+
.validated_assignment_fmt(&true)
114+
.expect("valid boolean value"),
115+
gix::config::tree::gitoxide::Core::EXTERNAL_COMMAND_STDERR
116+
.validated_assignment_fmt(&true)
117+
.expect("valid boolean value"),
118+
])
110119
};
111120
mapping.full.modify(to_match_settings);
112121
mapping.reduced.modify(to_match_settings);

0 commit comments

Comments
 (0)