Merge pull request #2558 from stefanhaller/allow-resetting-author-during-rebase

This commit is contained in:
Jesse Duffield 2023-04-29 12:44:14 +10:00 committed by GitHub
commit aa70723e3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -79,7 +79,7 @@ func (self *RebaseCommands) SetCommitAuthor(commits []*models.Commit, index int,
}
func (self *RebaseCommands) GenericAmend(commits []*models.Commit, index int, f func() error) error {
if index == 0 {
if models.IsHeadCommit(commits, index) {
// we've selected the top commit so no rebase is required
return f()
}