Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added timeout support #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Added timeout support #12

wants to merge 1 commit into from

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