Commit Graph
6 Commits
Author SHA1 Message Date
Jakob KoglerandJesse Duffield 673c4a1296 also test for empty prefill after successful commit 2022-01-07 11:01:42 +11:00
Jakob KoglerandJesse Duffield ee7a6391a8 remove redundant commit 2022-01-07 11:01:42 +11:00
Jakob KoglerandJesse Duffield 68fc6059d3 rename variable to failedCommitMessage 2022-01-07 11:01:42 +11:00
Jakob KoglerandJesse Duffield d517531c16 test remembering the commit message for a failing commit 2022-01-07 11:01:42 +11:00
Jakob KoglerandJesse Duffield f981255a5b don't ignore error when commit with subprocess fails
If signing by GPG is enabled, the git commit command will be executed in
a subprocess, differently from when it is executed without GPG signing.
In case of an error, e.g. a failing pre-commit hook, the error needs to
be passed along, and not just ignored.
2022-01-07 11:01:42 +11:00
Jakob KoglerandJesse Duffield beedc2553d remember the message if commit fails
In case a commit fails, e.g. because a pre-commit hook returns an error,
lazygit will now remember the commit message and will suggest it during
the next commit (e.g. after fixing the error of the pre-commit hook).
2022-01-07 11:01:42 +11:00