bower/bower — pull request #1393 by Lukeas14 (2014-07-08 17:51:51+00:00)
Title: Disable shallow clones for all repos except those from github.com

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.

This is an update to the PR https://github.com/bower/bower/pull/1389 (Add --full-depth flag to 'bower install'). @sheerun mentioned we should disable all shallow clones instead of creating a new 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.