mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2025-01-05 17:15:19 +03:00
Merge pull request #3878 from gitbutlerapp/null-stdin
disable stdin for invocations of ssh-keygen when signing commits
This commit is contained in:
commit
a6bad0ee13
@ -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()?;
|
||||
|
Loading…
Reference in New Issue
Block a user