public function pull() | public function pull() | ||||
{ | { | ||||
shell_exec('cd ' . dirname(__DIR__) . ' && D:\Git\git-bash.exe pull'); | |||||
try { | |||||
var_dump(shell_exec('cd ' . dirname(__DIR__) . ' && git pull')); | |||||
} catch (\Exception $e) { | |||||
return tojson(10000, $e->getMessage()); | |||||
} catch (\Throwable $e) { | |||||
return tojson(10000, $e->getMessage()); | |||||
} | |||||
} | } | ||||
} | } |