Fix go-get, src and raw urls to new scheme (#2978)

This commit is contained in:
Lauris BH authored and GitHub committed 2017-11-27 02:58:54 +02:00
1 parent fb5c6b6444
commit 0d4c63fd70
5 files changed
+15 -15

No files matched your search

+1 -1
View File
@@ -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}"
}