Skip to content

Commit a676f6f

Browse files
committed
add comment explaining why GPG check is kept in RewordCommit
1 parent 77f39e5 commit a676f6f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/commands/git_commands/rebase.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ func NewRebaseCommands(
3535
}
3636

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

0 commit comments

Comments
 (0)