aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
author无闻 <u@gogs.io>2015-09-24 18:51:02 -0400
committer无闻 <u@gogs.io>2015-09-24 18:51:02 -0400
commit4f8b20995694a21cdde1c2be3b86de8186fe3f42 (patch)
tree99790337f13d169f30bfaefcc337ed5c4502e997 /modules
parent043ded08963df5a524d4bfe74ec44f785de5ef5e (diff)
parentf8c09dc1ff6fa49bc19a890d547632dc3fc02879 (diff)
downloadgitea-4f8b20995694a21cdde1c2be3b86de8186fe3f42.tar.gz
gitea-4f8b20995694a21cdde1c2be3b86de8186fe3f42.zip
Merge pull request #1678 from TheHowl/TheHowl/fix-go-get-not-working-with-user-or-repo-names-with-uppercase-letters
Fix `go get` not working when there is a username or repository name with some uppercase letters.
Diffstat (limited to 'modules')
-rw-r--r--modules/middleware/repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/middleware/repo.go b/modules/middleware/repo.go
index 8f44ac9a23..3acd7bc842 100644
--- a/modules/middleware/repo.go
+++ b/modules/middleware/repo.go
@@ -347,7 +347,7 @@ func RepoAssignment(redirect bool, args ...bool) macaron.Handler {
ctx.Data["CloneLink"] = ctx.Repo.CloneLink
if ctx.Query("go-get") == "1" {
- ctx.Data["GoGetImport"] = fmt.Sprintf("%s/%s/%s", setting.Domain, u.LowerName, repo.LowerName)
+ ctx.Data["GoGetImport"] = fmt.Sprintf("%s/%s/%s", setting.Domain, u.Name, repo.Name)
}
// repo is bare and display enable