Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Disable shallow clones for all repos except those from github.com #1393
This PR disables shallow clones for all repos except those with github.com in the hostname. It does this by checking the hostname using a regex in the getOrgRepoPair method before setting the "--depth 1" flag.
Note: The getOrgRepoPair method was moved from the GitHubResolver to the GitRemoteResolver so that it could be accessed by the GitRemoteResolver. Any module that called getOrgRepoPair was refactored to reflect the move.
I tried that at first but since GitHubResolver inherits GitRemoteResolver you get an error (
Can you think of another way to access methods in GitHubResolver from GitRemoteResolver?
This was referenced
Sep 1, 2014
added a commit
this pull request
Sep 7, 2014
Is there going to be a real fix for this at one point? We're using a private repo (not GitHub) that supports shallow clones, and our build time has increased significantly since this change.
As part of our build/continuous integration process, we're cloning several projects into a local directory, and then run
Is there an easy way to disable this change per repo? I would like to get our build fast and lean again.