mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-08-10 22:42:00 +02:00
Remove the call to OnCommitSuccess from tag creation
This is no change in behavior because OnCommitSuccess only clears the message when the commit message panel was opened with preserveMessage=true, which it isn't in the case of creating a tag. And this is in fact the desired behavior, because we don't want creating a tag to interfere with preserving commit messages in any way.
This commit is contained in:
committed by
Stefan Haller
parent
5d30409f33
commit
26e58b8def
@@ -34,7 +34,6 @@ func (self *TagsHelper) OpenCreateTagPrompt(ref string, onCreate func()) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return self.gpg.WithGpgHandling(command, git_commands.TagGpgSign, self.c.Tr.CreatingTag, func() error {
|
return self.gpg.WithGpgHandling(command, git_commands.TagGpgSign, self.c.Tr.CreatingTag, func() error {
|
||||||
self.commitsHelper.OnCommitSuccess()
|
|
||||||
return nil
|
return nil
|
||||||
}, []types.RefreshableView{types.COMMITS, types.TAGS})
|
}, []types.RefreshableView{types.COMMITS, types.TAGS})
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user