0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-23 14:24:34 +01:00

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.
This commit is contained in:
无闻 2015-09-24 18:51:02 -04:00
commit 4f8b209956

View file

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