mirror of
https://github.com/bower/bower.git
synced 2026-04-24 03:00:19 -04:00
add fallback support to dumb http servers
This commit is contained in:
@@ -133,7 +133,7 @@ GitRemoteResolver.prototype._fastClone = function (resolution) {
|
||||
// When that happens, we mark this host and try again
|
||||
if (!GitRemoteResolver._noShallow.has(that._source) &&
|
||||
err.details &&
|
||||
/(rpc failed|shallow)/i.test(err.details)
|
||||
/(rpc failed|shallow|--depth)/i.test(err.details)
|
||||
) {
|
||||
GitRemoteResolver._noShallow.set(that._host, true);
|
||||
return that._fastClone(resolution);
|
||||
|
||||
Reference in New Issue
Block a user