Skip to content

Commit f4115c3

Browse files
committed
Try to fix #5839 by disallowing manual argument splitting. (#5839)
That way, the shell will be used on Windows as well.
1 parent 018c038 commit f4115c3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

crates/gitbutler-repo/src/repository_ext.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,8 +333,9 @@ impl RepositoryExt for git2::Repository {
333333
let args = format!("{} {}", signing_key, buffer_file_to_sign_path_str);
334334
cmd_string += &args;
335335
};
336-
let mut signing_cmd: std::process::Command =
337-
gix::command::prepare(cmd_string).with_shell().into();
336+
let mut signing_cmd: std::process::Command = gix::command::prepare(cmd_string)
337+
.with_shell_disallow_manual_argument_splitting()
338+
.into();
338339
let output = signing_cmd
339340
.stderr(Stdio::piped())
340341
.stdout(Stdio::piped())

0 commit comments

Comments
 (0)