mirror of
https://github.com/go-gitea/gitea
synced 2024-12-22 07:57:50 +01:00
#2646 fix panic on pushing repositor
This commit is contained in:
parent
d5ca913b2f
commit
ccc94dd11c
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user