summaryrefslogtreecommitdiffstats
path: root/modules/base/base.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-02-17 22:47:06 -0500
committerUnknwon <u@gogs.io>2016-02-17 22:47:06 -0500
commit338af89d5641008be579df9c554d0a1db190a009 (patch)
treec0341776543ed25be8906e2399c9c0a39d6ac928 /modules/base/base.go
parent2fdf8fc938295b95cbe6efb7cddb1b87c2fb81ee (diff)
downloadgitea-338af89d5641008be579df9c554d0a1db190a009.tar.gz
gitea-338af89d5641008be579df9c554d0a1db190a009.zip
#2650 fix possbility that use email as pusher user name
Remove the possibility of using email as user name when user actually push through combination of email and password with HTTP. Also refactor update action function to replcae tons of arguments with single PushUpdateOptions struct. And define the user who pushes code as pusher, therefore variable names shouldn't be confusing any more.
Diffstat (limited to 'modules/base/base.go')
-rw-r--r--modules/base/base.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/modules/base/base.go b/modules/base/base.go
index c9875fb507..45e2151e38 100644
--- a/modules/base/base.go
+++ b/modules/base/base.go
@@ -16,8 +16,6 @@ type (
TplName string
)
-var GoGetMetas = make(map[string]bool)
-
// ExecPath returns the executable path.
func ExecPath() (string, error) {
file, err := exec.LookPath(os.Args[0])