add fallback support to dumb http servers

This commit is contained in:
Patrick Kettner
2014-01-22 14:07:23 -05:00
parent 3d64222655
commit 08af876e01

View File

@@ -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);