From c50a3503e6e8ece0dabd109932a72fe093c3cab3 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Thu, 26 Nov 2015 17:33:45 -0500 Subject: introduce git-shell --- modules/middleware/repo.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'modules/middleware/repo.go') diff --git a/modules/middleware/repo.go b/modules/middleware/repo.go index 9fe454dd46..210e563730 100644 --- a/modules/middleware/repo.go +++ b/modules/middleware/repo.go @@ -311,11 +311,7 @@ func RepoAssignment(args ...bool) macaron.Handler { return } ctx.Repo.GitRepo = gitRepo - ctx.Repo.RepoLink, err = repo.RepoLink() - if err != nil { - ctx.Handle(500, "RepoLink", err) - return - } + ctx.Repo.RepoLink = repo.RepoLink() ctx.Data["RepoLink"] = ctx.Repo.RepoLink ctx.Data["RepoRelPath"] = ctx.Repo.Owner.Name + "/" + ctx.Repo.Repository.Name -- cgit v1.2.3