Shell_exec with git pull ?
Posted
by rnaud
on Stack Overflow
See other posts from Stack Overflow
or by rnaud
Published on 2010-03-26T11:43:06Z
Indexed on
2010/03/26
11:53 UTC
Read the original article
Hit count: 183
Hi everyone,
I am setting up a github account, to work on a small project with some friends. I would like to have my home machine able to do a git pull via php, so that we just have to call this small php file for the machine to be up to date.
As of right now :
<?php
$output = shell_exec('git help');
echo "<pre>$output</pre>";
?>
This works perfectly and I get the output, I am in the right directory, so git pull should work just as well, but I get a hanging page, no error, nothing.
Any idea ?
© Stack Overflow or respective owner