Bug fix
This commit is contained in:
parent
8b700e825b
commit
5344a03003
4 changed files with 10 additions and 3 deletions
|
@ -56,7 +56,9 @@ func RepoAssignment(redirect bool) martini.Handler {
|
|||
// get repository
|
||||
repo, err := models.GetRepositoryByName(user.Id, params["reponame"])
|
||||
if err != nil {
|
||||
if redirect {
|
||||
if err == models.ErrRepoNotExist {
|
||||
ctx.Handle(404, "RepoAssignment", err)
|
||||
} else if redirect {
|
||||
ctx.Redirect("/")
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue