summaryrefslogtreecommitdiffstats
path: root/modules/middleware
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-28 08:39:35 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-28 08:39:35 -0400
commitcb05b8325cdd85dda9bbebf61d8993da34d80e70 (patch)
tree02f277bc119d4ba6368aac7cb9660e1ee7c3869b /modules/middleware
parent6bd4f34c8dad50da5dc861ffdaebae1577f8881e (diff)
downloadgitea-cb05b8325cdd85dda9bbebf61d8993da34d80e70.tar.gz
gitea-cb05b8325cdd85dda9bbebf61d8993da34d80e70.zip
Update config option
Diffstat (limited to 'modules/middleware')
-rw-r--r--modules/middleware/repo.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/modules/middleware/repo.go b/modules/middleware/repo.go
index cb4a8632a2..54b735af07 100644
--- a/modules/middleware/repo.go
+++ b/modules/middleware/repo.go
@@ -71,12 +71,8 @@ func RepoAssignment(redirect bool) martini.Handler {
ctx.Repo.IsWatching = models.IsWatching(ctx.User.Id, repo.Id)
}
ctx.Repo.Repository = repo
- scheme := "http"
- if base.EnableHttpsClone {
- scheme = "https"
- }
ctx.Repo.CloneLink.SSH = fmt.Sprintf("%s@%s:%s/%s.git", base.RunUser, base.Domain, user.LowerName, repo.LowerName)
- ctx.Repo.CloneLink.HTTPS = fmt.Sprintf("%s://%s/%s/%s.git", scheme, base.Domain, user.LowerName, repo.LowerName)
+ ctx.Repo.CloneLink.HTTPS = fmt.Sprintf("%s%s/%s.git", base.AppUrl, user.LowerName, repo.LowerName)
if len(params["branchname"]) == 0 {
params["branchname"] = "master"