This commit is contained in:
Unknown 2014-03-27 21:15:53 -04:00
parent 8b700e825b
commit 5344a03003
4 changed files with 10 additions and 3 deletions

View file

@ -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
}