diff options
author | Lauris BH <lauris@nix.lv> | 2017-11-27 02:58:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-27 02:58:54 +0200 |
commit | 0d4c63fd70d0b255a9a17352cc47ec2b6ca13440 (patch) | |
tree | 1128c5e474474bf7b2967dee8b9528dc207c6aa7 /modules | |
parent | fb5c6b644460f94acb8976ad35165230b9d47fb2 (diff) | |
download | gitea-0d4c63fd70d0b255a9a17352cc47ec2b6ca13440.tar.gz gitea-0d4c63fd70d0b255a9a17352cc47ec2b6ca13440.zip |
Fix go-get, src and raw urls to new scheme (#2978)
Diffstat (limited to 'modules')
-rw-r--r-- | modules/context/context.go | 2 | ||||
-rw-r--r-- | modules/context/repo.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/context/context.go b/modules/context/context.go index 9f5d934e4d..2c9afb36e7 100644 --- a/modules/context/context.go +++ b/modules/context/context.go @@ -182,7 +182,7 @@ func Contexter() macaron.Handler { branchName = repo.DefaultBranch } } - prefix := setting.AppURL + path.Join(ownerName, repoName, "src", branchName) + prefix := setting.AppURL + path.Join(ownerName, repoName, "src", "branch", branchName) c.PlainText(http.StatusOK, []byte(com.Expand(` <html> <head> 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}" } |