diff options
author | Unknwon <u@gogs.io> | 2016-02-17 15:17:52 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-02-17 15:17:52 -0500 |
commit | ccc94dd11cdc2eed16444715255c6fc590094a7b (patch) | |
tree | 4f4c3d22ee4163ccb3fe2465b8d74989475cd843 /cmd/update.go | |
parent | d5ca913b2f78ea68f41d9f377a3bf4f37bc8ab0c (diff) | |
download | gitea-ccc94dd11cdc2eed16444715255c6fc590094a7b.tar.gz gitea-ccc94dd11cdc2eed16444715255c6fc590094a7b.zip |
#2646 fix panic on pushing repositor
Diffstat (limited to 'cmd/update.go')
-rw-r--r-- | cmd/update.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/update.go b/cmd/update.go index 1d27fb3e7b..30f778f229 100644 --- a/cmd/update.go +++ b/cmd/update.go @@ -29,13 +29,13 @@ func runUpdate(c *cli.Context) { setting.CustomConf = c.String("config") } + setup("update.log") + if len(os.Getenv("SSH_ORIGINAL_COMMAND")) == 0 { log.GitLogger.Trace("SSH_ORIGINAL_COMMAND is empty") return } - setup("update.log") - args := c.Args() if len(args) != 3 { log.GitLogger.Fatal(2, "Arguments received are not equal to three") |