Merge pull request #2612 from longlhh90/fix-commit-prefixes-with-empty-commit-message

This commit is contained in:
Jesse Duffield 2023-05-17 17:12:05 +10:00 committed by GitHub
commit 681a9bf20d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 107 additions and 1 deletions

View file

@ -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