aboutsummaryrefslogtreecommitdiff
path: root/modules/middleware/repo.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-03-29 14:35:54 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-03-29 14:35:54 +0800
commitf48fc24670b122df069149801459eb55a67045c7 (patch)
tree04a054e989341953072f854134a50d62f75993c8 /modules/middleware/repo.go
parente085d7738a683785a5d7d7e3a33a0437c87c340b (diff)
parentd01820c125669367b7a585d767d5f11e73a701c2 (diff)
Merge branch 'master' of github.com:gogits/gogs
Diffstat (limited to 'modules/middleware/repo.go')
-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 cb4a8632..54b735af 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"