diff options
author | Howl <git@howl.moe> | 2015-09-23 16:16:52 +0200 |
---|---|---|
committer | Howl <git@howl.moe> | 2015-09-23 16:16:52 +0200 |
commit | f8c09dc1ff6fa49bc19a890d547632dc3fc02879 (patch) | |
tree | a869aa1075c1f4c317100ae6a51815e48349b2a2 /modules/middleware/repo.go | |
parent | 42a38dfca3ce5d2fde569b966ef4a733bec7f673 (diff) | |
download | gitea-f8c09dc1ff6fa49bc19a890d547632dc3fc02879.tar.gz gitea-f8c09dc1ff6fa49bc19a890d547632dc3fc02879.zip |
Fix `go get` not working when there is a username or repository name with some uppercase letters.
Diffstat (limited to 'modules/middleware/repo.go')
-rw-r--r-- | modules/middleware/repo.go | 2 |
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 |