mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-04-25 12:24:47 +02:00
Adding guard to not do reword under git_commands when using gpg
This commit is contained in:
parent
58d7467180
commit
ce6388bdfa
@ -35,6 +35,10 @@ func NewRebaseCommands(
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (self *RebaseCommands) RewordCommit(commits []*models.Commit, index int, summary string, description string) error {
|
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) {
|
if models.IsHeadCommit(commits, index) {
|
||||||
// we've selected the top commit so no rebase is required
|
// we've selected the top commit so no rebase is required
|
||||||
return self.commit.RewordLastCommit(summary, description)
|
return self.commit.RewordLastCommit(summary, description)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user