From 0d4c63fd70d0b255a9a17352cc47ec2b6ca13440 Mon Sep 17 00:00:00 2001 From: Lauris BH Date: Mon, 27 Nov 2017 02:58:54 +0200 Subject: Fix go-get, src and raw urls to new scheme (#2978) --- modules/context/repo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/context/repo.go') diff --git a/modules/context/repo.go b/modules/context/repo.go index 883a826e44..38baa42306 100644 --- a/modules/context/repo.go +++ b/modules/context/repo.go @@ -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}" } -- cgit v1.2.3