git pull finished (v0.1)

This commit is contained in:
xdrm-brackets 2016-11-07 18:17:06 +01:00
parent 79818b8c4e
commit aecb4861d7
1 changed files with 10 additions and 0 deletions

View File

@ -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 [];
}
}