forked from forgejo/forgejo
#2682 fix missing slash for go-get meta
This commit is contained in:
parent
912f7b51e9
commit
72ce06eab8
5 changed files with 5 additions and 5 deletions
|
@ -216,7 +216,7 @@ func RepoAssignment(args ...bool) macaron.Handler {
|
|||
|
||||
if ctx.Query("go-get") == "1" {
|
||||
ctx.Data["GoGetImport"] = path.Join(setting.Domain, setting.AppSubUrl, owner.Name, repo.Name)
|
||||
prefix := path.Join(setting.AppUrl, owner.Name, repo.Name, "src", ctx.Repo.BranchName)
|
||||
prefix := setting.AppUrl + path.Join(owner.Name, repo.Name, "src", 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