|
@@ -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"
|