forked from forgejo/forgejo
Fix go-get, src and raw urls to new scheme (#2978)
This commit is contained in:
parent
fb5c6b6444
commit
0d4c63fd70
5 changed files with 15 additions and 15 deletions
|
@ -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}"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue