From 3a81fdf092a39cc94f3bb896a42db8546bd5f39a Mon Sep 17 00:00:00 2001 From: Unknwon Date: Tue, 3 Nov 2015 22:49:06 -0500 Subject: rename fields --- modules/git/submodule.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/git/submodule.go') diff --git a/modules/git/submodule.go b/modules/git/submodule.go index 0b8efc26..10680c24 100644 --- a/modules/git/submodule.go +++ b/modules/git/submodule.go @@ -6,6 +6,7 @@ package git import ( "strings" + "github.com/gogits/gogs/modules/setting" ) @@ -53,7 +54,7 @@ func (sf *SubModuleFile) RefUrl() string { j := strings.LastIndex(url, ":") if i > -1 && j > -1 { // fix problem with reverse proxy works only with local server - if strings.Contains(setting.AppUrl,url[i+1:j]) { + if strings.Contains(setting.AppUrl, url[i+1:j]) { return setting.AppUrl + url[j+1:] } else { return "http://" + url[i+1:j] + "/" + url[j+1:] -- cgit v1.2.3