diff options
Diffstat (limited to 'modules/middleware/repo.go')
-rw-r--r-- | modules/middleware/repo.go | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/modules/middleware/repo.go b/modules/middleware/repo.go index 84c3f1d4f0..8bda9ebf7b 100644 --- a/modules/middleware/repo.go +++ b/modules/middleware/repo.go @@ -339,12 +339,8 @@ func RepoAssignment(args ...bool) macaron.Handler { ctx.Data["IsRepositoryPusher"] = ctx.Repo.IsPusher() ctx.Data["DisableSSH"] = setting.DisableSSH - ctx.Repo.CloneLink, err = repo.CloneLink() - if err != nil { - ctx.Handle(500, "CloneLink", err) - return - } - ctx.Data["CloneLink"] = ctx.Repo.CloneLink + ctx.Data["CloneLink"] = repo.CloneLink() + ctx.Data["WikiCloneLink"] = repo.WikiCloneLink() if ctx.IsSigned { ctx.Data["IsWatchingRepo"] = models.IsWatching(ctx.User.Id, repo.ID) |