kzykhys/PHPGit — pull request #12 by luisfaceira (2014-07-28 11:15:23+00:00)
Title: Added timeout support

The Git class constructor now allows to define a non-standard (60 seconds) timeout for the processes it launches, since many times it is normal that such executions take much more time, specially when cloning or pushing to a new repository.

I'm handling big repositories that take a long time to clone and I wasn't being able to clone them (and other operations) through the library, because by default all processes of the Symfony Process Component have a timeout of 60 seconds. I've added an optional parameter on the constructor to change the global timeout to be used in each process launched to make possible to set an higher value.