1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-03 00:57:52 +02:00

fix: show GPG error before entering commit editor

Closes #4611
This commit is contained in:
Mostafa Khaled
2025-06-23 23:52:31 +03:00
committed by Stefan Haller
parent ef6f96bda3
commit 9e05e4d810
2 changed files with 7 additions and 1 deletions

View File

@ -35,6 +35,8 @@ func NewRebaseCommands(
}
func (self *RebaseCommands) RewordCommit(commits []*models.Commit, index int, summary string, description string) error {
// This check is currently unreachable (handled in LocalCommitsController.reword),
// but kept as a safeguard in case this method is used elsewhere.
if self.config.NeedsGpgSubprocessForCommit() {
return errors.New(self.Tr.DisabledForGPG)
}