Skip to content

Commit 6836e0c

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 fc29310 commit 6836e0c

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
@@ -435,8 +435,9 @@ impl RepositoryExt for git2::Repository {
435435
let args = format!("{} {}", signing_key, buffer_file_to_sign_path_str);
436436
cmd_string += &args;
437437
};
438-
let mut signing_cmd: std::process::Command =
439-
gix::command::prepare(cmd_string).with_shell().into();
438+
let mut signing_cmd: std::process::Command = gix::command::prepare(cmd_string)
439+
.with_shell_disallow_manual_argument_splitting()
440+
.into();
440441
let output = signing_cmd
441442
.stderr(Stdio::piped())
442443
.stdout(Stdio::piped())

0 commit comments

Comments
 (0)