|
|
@ -29,13 +29,13 @@ func runUpdate(c *cli.Context) { |
|
|
|
setting.CustomConf = c.String("config") |
|
|
|
setting.CustomConf = c.String("config") |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setup("update.log") |
|
|
|
|
|
|
|
|
|
|
|
if len(os.Getenv("SSH_ORIGINAL_COMMAND")) == 0 { |
|
|
|
if len(os.Getenv("SSH_ORIGINAL_COMMAND")) == 0 { |
|
|
|
log.GitLogger.Trace("SSH_ORIGINAL_COMMAND is empty") |
|
|
|
log.GitLogger.Trace("SSH_ORIGINAL_COMMAND is empty") |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
setup("update.log") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
args := c.Args() |
|
|
|
args := c.Args() |
|
|
|
if len(args) != 3 { |
|
|
|
if len(args) != 3 { |
|
|
|
log.GitLogger.Fatal(2, "Arguments received are not equal to three") |
|
|
|
log.GitLogger.Fatal(2, "Arguments received are not equal to three") |
|
|
|