&1', $out, $status); } if($branch=='master'){ exec('d:\.ssh\Git\bin\sh.exe -c "export HOME=/d;git pull" 2>&1', $out, $status); } if (0 === $status) { print("Done"); } else { header("Status: 404"); echo "Command failed with status: $status
"; print_r($out); }