1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-04-23 12:18:51 +02:00

Adding guard to not do reword under git_commands when using gpg

This commit is contained in:
Neko Box Coder 2024-08-10 13:24:39 +01:00 committed by Stefan Haller
parent 58d7467180
commit ce6388bdfa

@ -35,6 +35,10 @@ func NewRebaseCommands(
}
func (self *RebaseCommands) RewordCommit(commits []*models.Commit, index int, summary string, description string) error {
if self.config.UsingGpg() {
return errors.New(self.Tr.DisabledForGPG)
}
if models.IsHeadCommit(commits, index) {
// we've selected the top commit so no rebase is required
return self.commit.RewordLastCommit(summary, description)