Add owner_name column for table repository for maintaince reason (#9717)
* Add owner_name column for table repository for maintaince reason * refactor * Fix tests * fix test * fix bug when fork repository Co-authored-by: zeripath <art27@cantab.net>
This commit is contained in:
@ -256,7 +256,7 @@ func RedirectToRepo(ctx *Context, redirectRepoID int64) {
|
||||
redirectPath := strings.Replace(
|
||||
ctx.Req.URL.Path,
|
||||
fmt.Sprintf("%s/%s", ownerName, previousRepoName),
|
||||
fmt.Sprintf("%s/%s", repo.MustOwnerName(), repo.Name),
|
||||
repo.FullName(),
|
||||
1,
|
||||
)
|
||||
if ctx.Req.URL.RawQuery != "" {
|
||||
|
Reference in New Issue
Block a user