Skip to content

Commit 7627600

Browse files
committed
fix: wrong editor configuration commandline passing to git (#1576)
Signed-off-by: leo <[email protected]>
1 parent 79dc295 commit 7627600

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Commands/Command.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,8 @@ private ProcessStartInfo CreateGitStartInfo(bool redirect)
187187
// Force using this app as git editor.
188188
start.Arguments += Editor switch
189189
{
190-
EditorType.CoreEditor => $"""-c core.editor="{selfExecFile.Quoted()} --core-editor" """,
191-
EditorType.RebaseEditor => $"""-c core.editor="{selfExecFile.Quoted()} --rebase-message-editor" -c sequence.editor="{selfExecFile.Quoted()} --rebase-todo-editor" -c rebase.abbreviateCommands=true """,
190+
EditorType.CoreEditor => $"""-c core.editor="\"{selfExecFile}\" --core-editor" """,
191+
EditorType.RebaseEditor => $"""-c core.editor="\"{selfExecFile}\" --rebase-message-editor" -c sequence.editor="\"{selfExecFile}\" --rebase-todo-editor" -c rebase.abbreviateCommands=true """,
192192
_ => "-c core.editor=true ",
193193
};
194194

0 commit comments

Comments
 (0)