Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move transfer repository and rename repository on a service package and start action notification #8573

Merged
merged 11 commits into from
Nov 15, 2019
Prev Previous commit
Next Next commit
remove unused codes
  • Loading branch information
lunny committed Nov 14, 2019
commit 9fe835e8eccad98539370f0adb50b668fd0bf50a
6 changes: 1 addition & 5 deletions models/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -1825,11 +1825,7 @@ func TransferOwnership(doer *User, newOwnerName string, repo *Repository) error
return fmt.Errorf("delete repo redirect: %v", err)
}

if err := sess.Commit(); err != nil {
return err
}

return nil
return sess.Commit()
}

// ChangeRepositoryName changes all corresponding setting from old repository name to new one.
Expand Down