mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-26 12:27:06 +00:00 
			
		
		
		
	Fix go get not working when there is a username or repository name with some uppercase letters.
				
					
				
			This commit is contained in:
		| @@ -347,7 +347,7 @@ func RepoAssignment(redirect bool, args ...bool) macaron.Handler { | |||||||
| 		ctx.Data["CloneLink"] = ctx.Repo.CloneLink | 		ctx.Data["CloneLink"] = ctx.Repo.CloneLink | ||||||
|  |  | ||||||
| 		if ctx.Query("go-get") == "1" { | 		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 | 		// repo is bare and display enable | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Howl
					Howl