From aecb4861d7f7b49aa837c51c0b0222c910cef13b Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Mon, 7 Nov 2016 18:17:06 +0100 Subject: [PATCH] git pull finished (v0.1) --- build/api/module/release.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/build/api/module/release.php b/build/api/module/release.php index c41c177..47c3d20 100644 --- a/build/api/module/release.php +++ b/build/api/module/release.php @@ -48,6 +48,16 @@ /* [3] Launch script =========================================================*/ /* (1) Launch command + test */ + $stdout = shell_exec('cd '.$js[$project]['root'].'; git pull origin '.$branch.';'); + + /* (2) If error, raise error */ + if( is_null($stdout) ) + return ['ModuleError'=>ManagerError::PermissionError]; + + + /* [4] Return success error + =========================================================*/ + return []; } }