summaryrefslogtreecommitdiffstats
path: root/pkg/gui/controllers/helpers/working_tree_helper.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/gui/controllers/helpers/working_tree_helper.go')
-rw-r--r--pkg/gui/controllers/helpers/working_tree_helper.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/gui/controllers/helpers/working_tree_helper.go b/pkg/gui/controllers/helpers/working_tree_helper.go
index edd7005e9..a97639795 100644
--- a/pkg/gui/controllers/helpers/working_tree_helper.go
+++ b/pkg/gui/controllers/helpers/working_tree_helper.go
@@ -220,9 +220,9 @@ func (self *WorkingTreeHelper) prepareFilesForCommit() error {
func (self *WorkingTreeHelper) commitPrefixConfigForRepo() *config.CommitPrefixConfig {
cfg, ok := self.c.UserConfig.Git.CommitPrefixes[self.c.Git().RepoPaths.RepoName()]
- if !ok {
- return nil
+ if ok {
+ return &cfg
}
- return &cfg
+ return self.c.UserConfig.Git.CommitPrefix
}