Skip to content

Commit 08af876

Browse files
add fallback support to dumb http servers
1 parent 3d64222 commit 08af876

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/core/resolvers/GitRemoteResolver.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ GitRemoteResolver.prototype._fastClone = function (resolution) {
133133
// When that happens, we mark this host and try again
134134
if (!GitRemoteResolver._noShallow.has(that._source) &&
135135
err.details &&
136-
/(rpc failed|shallow)/i.test(err.details)
136+
/(rpc failed|shallow|--depth)/i.test(err.details)
137137
) {
138138
GitRemoteResolver._noShallow.set(that._host, true);
139139
return that._fastClone(resolution);

0 commit comments

Comments
 (0)