Browse Source

Fix `go get` not working when there is a username or repository name with some uppercase letters.

tags/v0.9.99
Howl 8 years ago
parent
commit
f8c09dc1ff
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      modules/middleware/repo.go

+ 1
- 1
modules/middleware/repo.go 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

Loading…
Cancel
Save