Merge pull request #3878 from gitbutlerapp/null-stdin

disable stdin for invocations of ssh-keygen when signing commits
This commit is contained in:
Josh Junon 2024-05-28 14:00:23 +02:00 committed by GitHub
commit a6bad0ee13
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -333,6 +333,7 @@ impl Repository {
cmd.arg("-U");
cmd.arg(&buffer_file_to_sign_path);
cmd.stdout(Stdio::piped());
cmd.stdin(Stdio::null());
let child = cmd.spawn()?;
output = child.wait_with_output()?;
@ -340,6 +341,7 @@ impl Repository {
cmd.arg(signing_key);
cmd.arg(&buffer_file_to_sign_path);
cmd.stdout(Stdio::piped());
cmd.stdin(Stdio::null());
let child = cmd.spawn()?;
output = child.wait_with_output()?;