summaryrefslogtreecommitdiffstats
path: root/modules/middleware/repo.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-20 08:25:41 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-20 08:25:41 -0400
commite8a49c7746f3d93688d83401c69b0f4936c25783 (patch)
tree6a9934cf1aea634a9886b1e759c9bd060541f959 /modules/middleware/repo.go
parentcb80111e8923ff9317199dca61509e32408279ca (diff)
downloadgitea-e8a49c7746f3d93688d83401c69b0f4936c25783.tar.gz
gitea-e8a49c7746f3d93688d83401c69b0f4936c25783.zip
Add data to ui
Diffstat (limited to 'modules/middleware/repo.go')
-rw-r--r--modules/middleware/repo.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/middleware/repo.go b/modules/middleware/repo.go
index b25c942316..62c67bcee1 100644
--- a/modules/middleware/repo.go
+++ b/modules/middleware/repo.go
@@ -70,6 +70,7 @@ func RepoAssignment(redirect bool) martini.Handler {
}
ctx.Repo.Repository = repo
ctx.Repo.CloneLink.SSH = fmt.Sprintf("git@%s:%s/%s.git", base.Domain, user.LowerName, repo.LowerName)
+ ctx.Repo.CloneLink.HTTPS = fmt.Sprintf("https://%s/%s/%s.git", base.Domain, user.LowerName, repo.LowerName)
ctx.Data["IsRepositoryValid"] = true
ctx.Data["Repository"] = repo