What's the time limit for git clone or submodule init?

Hello guys!

We are using self-hosted repository, and our app is experiencing timeout failures while running git submodule init in Bitrise. We’ve made a quick check, and there’s no time limit set from our self-hosted repository.

I’m wondering whether in Bitrise, there is a config to control timeout for git clone or git submodule init? Or is there any hard limit?

Looking forward for your help!


Whoops, forgot that we can set the timeout via bitrise.yml.

Turns out that the failure is caused by a different issue from ours. Thanks!

1 Like

Not problem at all @dvdchr-tvlk, glad you solved the issue :slight_smile:

To answer your question (and for future reference)

By default we don’t set any limit, the only limit is the build’s max build time.

If you want to set a limit yourself then you can use the timeout param as you said (related announcement post: Monthly release of Bitrise CLI tools and summary of updates (September, 2017) - CLI v1.9.0).

Not sure if git itself has any default hard limit… We most certainly do not set or change that, our stacks have default git installs & configs, the same you get when you install git yourself.

Questions & feedback are always welcome!
Happy Building! :slight_smile: