mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Fix go-get, src and raw urls to new scheme (#2978)
This commit is contained in:
		| @@ -453,7 +453,7 @@ func RepoAssignment() macaron.Handler { | ||||
|  | ||||
| 		if ctx.Query("go-get") == "1" { | ||||
| 			ctx.Data["GoGetImport"] = ComposeGoGetImport(owner.Name, repo.Name) | ||||
| 			prefix := setting.AppURL + path.Join(owner.Name, repo.Name, "src", ctx.Repo.BranchName) | ||||
| 			prefix := setting.AppURL + path.Join(owner.Name, repo.Name, "src", "branch", ctx.Repo.BranchName) | ||||
| 			ctx.Data["GoDocDirectory"] = prefix + "{/dir}" | ||||
| 			ctx.Data["GoDocFile"] = prefix + "{/dir}/{file}#L{line}" | ||||
| 		} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user