We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db54ac5 commit 9208dcbCopy full SHA for 9208dcb
cmd/commit.go
@@ -291,14 +291,18 @@ var commitCmd = &cobra.Command{
291
return err
292
}
293
294
- if preview && !noConfirm {
295
- input := confirmation.New("Commit preview summary?", confirmation.Yes)
296
- ready, err := input.RunPrompt()
297
- if err != nil {
298
- return err
299
- }
300
- if !ready {
+ if preview {
+ if noConfirm {
301
return nil
+ } else {
+ input := confirmation.New("Commit preview summary?", confirmation.Yes)
+ ready, err := input.RunPrompt()
+ if err != nil {
+ return err
302
+ }
303
+ if !ready {
304
+ return nil
305
306
307
308
0 commit comments