diff options
author | Unknwon <u@gogs.io> | 2015-11-06 11:14:58 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-11-06 11:14:58 -0500 |
commit | 6f929dcd9e950a6aba14fe24cd79765016ece372 (patch) | |
tree | b077d9470558f745e8b862624c07cb5a2a429d96 /models | |
parent | 54ca0b2f0923b01ba152a3e2a9efdb6256d95571 (diff) | |
download | gitea-6f929dcd9e950a6aba14fe24cd79765016ece372.tar.gz gitea-6f929dcd9e950a6aba14fe24cd79765016ece372.zip |
#1895 Case sensitive clone URL
Diffstat (limited to 'models')
-rw-r--r-- | models/repo.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/repo.go b/models/repo.go index 32841efc1a..22ad486fc8 100644 --- a/models/repo.go +++ b/models/repo.go @@ -382,9 +382,9 @@ func (repo *Repository) CloneLink() (cl CloneLink, err error) { if setting.SSHPort != 22 { cl.SSH = fmt.Sprintf("ssh://%s@%s:%d/%s/%s.git", setting.RunUser, setting.SSHDomain, setting.SSHPort, repo.Owner.LowerName, repo.LowerName) } else { - cl.SSH = fmt.Sprintf("%s@%s:%s/%s.git", setting.RunUser, setting.SSHDomain, repo.Owner.LowerName, repo.LowerName) + cl.SSH = fmt.Sprintf("%s@%s:%s/%s.git", setting.RunUser, setting.SSHDomain, repo.Owner.Name, repo.Name) } - cl.HTTPS = fmt.Sprintf("%s%s/%s.git", setting.AppUrl, repo.Owner.LowerName, repo.LowerName) + cl.HTTPS = fmt.Sprintf("%s%s/%s.git", setting.AppUrl, repo.Owner.Name, repo.Name) return cl, nil } |