mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-12 23:41:54 +03:00
Fix tests and add test scenarios for amend.
This commit is contained in:
@ -317,9 +317,9 @@ func (c *GitCommand) usingGpg() bool {
|
||||
func (c *GitCommand) Commit(message string, amend bool) (*exec.Cmd, error) {
|
||||
amendParam := ""
|
||||
if amend {
|
||||
amendParam = "--amend"
|
||||
amendParam = " --amend"
|
||||
}
|
||||
command := fmt.Sprintf("git commit %s -m %s", amendParam, c.OSCommand.Quote(message))
|
||||
command := fmt.Sprintf("git commit%s -m %s", amendParam, c.OSCommand.Quote(message))
|
||||
if c.usingGpg() {
|
||||
return c.OSCommand.PrepareSubProcess(c.OSCommand.Platform.shell, c.OSCommand.Platform.shellArg, command), nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user