|
|
@ -171,11 +171,12 @@ func RedirectToRepo(ctx *Context, redirectRepoID int64) { |
|
|
|
) |
|
|
|
) |
|
|
|
ctx.Redirect(redirectPath) |
|
|
|
ctx.Redirect(redirectPath) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// RepoIDAssignment returns an macaron handler which assigns the repo to the context.
|
|
|
|
// RepoIDAssignment returns an macaron handler which assigns the repo to the context.
|
|
|
|
func RepoIDAssignment() macaron.Handler { |
|
|
|
func RepoIDAssignment() macaron.Handler { |
|
|
|
return func(ctx *Context) { |
|
|
|
return func(ctx *Context) { |
|
|
|
var ( |
|
|
|
var ( |
|
|
|
err error |
|
|
|
err error |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
repoID := ctx.ParamsInt64(":repoid") |
|
|
|
repoID := ctx.ParamsInt64(":repoid") |
|
|
|