diff options
author | Unknwon <u@gogs.io> | 2016-02-27 20:48:39 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-02-27 20:48:39 -0500 |
commit | 8055a0bdac005189077df69870cd2ed0b7eebd56 (patch) | |
tree | bf3fa2bf419006ea846315eef48fb5e83378376c /models/repo.go | |
parent | 83c74878df3f6edec4fca51e9cec299d2a1bb897 (diff) | |
download | gitea-8055a0bdac005189077df69870cd2ed0b7eebd56.tar.gz gitea-8055a0bdac005189077df69870cd2ed0b7eebd56.zip |
Post work for #2637
Improve test cases, config settings, also show SSH config settings on admin config panel.
Diffstat (limited to 'models/repo.go')
-rw-r--r-- | models/repo.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/models/repo.go b/models/repo.go index 089a5998e7..75a4e66033 100644 --- a/models/repo.go +++ b/models/repo.go @@ -457,10 +457,10 @@ func (repo *Repository) cloneLink(isWiki bool) *CloneLink { repo.Owner = repo.MustOwner() cl := new(CloneLink) - if setting.SSHPort != 22 { - cl.SSH = fmt.Sprintf("ssh://%s@%s:%d/%s/%s.git", setting.RunUser, setting.SSHDomain, setting.SSHPort, repo.Owner.Name, repoName) + if setting.SSH.Port != 22 { + cl.SSH = fmt.Sprintf("ssh://%s@%s:%d/%s/%s.git", setting.RunUser, setting.SSH.Domain, setting.SSH.Port, repo.Owner.Name, repoName) } else { - cl.SSH = fmt.Sprintf("%s@%s:%s/%s.git", setting.RunUser, setting.SSHDomain, repo.Owner.Name, repoName) + cl.SSH = fmt.Sprintf("%s@%s:%s/%s.git", setting.RunUser, setting.SSH.Domain, repo.Owner.Name, repoName) } cl.HTTPS = fmt.Sprintf("%s%s/%s.git", setting.AppUrl, repo.Owner.Name, repoName) return cl |