diff options
author | Lauris BH <lauris@nix.lv> | 2017-10-02 16:55:09 +0300 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-10-02 21:55:09 +0800 |
commit | 46cc45f04967ac4e258daafb98a716bc5ac77a94 (patch) | |
tree | 3a57fe955789d1c2273f34f4d2458465e60790e0 /modules/context | |
parent | a8717e5e3ace4dd226547faae9c3a44616bbf6f0 (diff) | |
download | gitea-46cc45f04967ac4e258daafb98a716bc5ac77a94.tar.gz gitea-46cc45f04967ac4e258daafb98a716bc5ac77a94.zip |
Fix go get response if only app URL is custom in configuration (#2634)
* Fix go get response if only app URL is custom in configuration
* Rewrite to update Domain setting to match AppURL
Diffstat (limited to 'modules/context')
-rw-r--r-- | modules/context/context.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/context/context.go b/modules/context/context.go index 7137a16723..9f5d934e4d 100644 --- a/modules/context/context.go +++ b/modules/context/context.go @@ -194,7 +194,7 @@ func Contexter() macaron.Handler { </body> </html> `, map[string]string{ - "GoGetImport": path.Join(setting.Domain, setting.AppSubURL, ctx.Link), + "GoGetImport": ComposeGoGetImport(ownerName, strings.TrimSuffix(repoName, ".git")), "CloneLink": models.ComposeHTTPSCloneURL(ownerName, repoName), "GoDocDirectory": prefix + "{/dir}", "GoDocFile": prefix + "{/dir}/{file}#L{line}", |