Added timeout handling for large git repositories.