mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 04:15:48 +02:00
Adding guard to not do reword under git_commands when using gpg
This commit is contained in:
parent
58d7467180
commit
ce6388bdfa
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue