mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 12:25:47 +02:00
Merge pull request #2612 from longlhh90/fix-commit-prefixes-with-empty-commit-message
This commit is contained in:
commit
681a9bf20d
4 changed files with 107 additions and 1 deletions
|
@ -147,7 +147,7 @@ func (self *WorkingTreeHelper) HandleWIPCommitPress() error {
|
|||
func (self *WorkingTreeHelper) HandleCommitPress() error {
|
||||
message := self.c.Contexts().CommitMessage.GetPreservedMessage()
|
||||
|
||||
if message != "" {
|
||||
if message == "" {
|
||||
commitPrefixConfig := self.commitPrefixConfigForRepo()
|
||||
if commitPrefixConfig != nil {
|
||||
prefixPattern := commitPrefixConfig.Pattern
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue