Skip to content

Added timeout support#12

Open
luisfaceira wants to merge 1 commit intokzykhys:masterfrom
beubi:master
Open

Added timeout support#12
luisfaceira wants to merge 1 commit intokzykhys:masterfrom
beubi:master

Conversation

@luisfaceira
Copy link

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.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant