Add raw, history file button, and other mirror fixes
This commit is contained in:
parent
17c1bc7383
commit
963354c5d7
21 changed files with 48 additions and 212 deletions
|
@ -663,7 +663,7 @@ func RepoPath(userName, repoName string) string {
|
|||
func TransferOwnership(u *User, newOwner string, repo *Repository) error {
|
||||
newUser, err := GetUserByName(newOwner)
|
||||
if err != nil {
|
||||
return err
|
||||
return fmt.Errorf("fail to get new owner(%s): %v", newOwner, err)
|
||||
}
|
||||
|
||||
// Check if new owner has repository with same name.
|
||||
|
|
|
@ -488,7 +488,7 @@ func GetUserByName(name string) (*User, error) {
|
|||
return user, nil
|
||||
}
|
||||
|
||||
// GetUserEmailsByNames returns a slice of e-mails corresponds to names.
|
||||
// GetUserEmailsByNames returns a list of e-mails corresponds to names.
|
||||
func GetUserEmailsByNames(names []string) []string {
|
||||
mails := make([]string, 0, len(names))
|
||||
for _, name := range names {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue