From dddbf75b9531eed28c77b91d5f8bb1e7a8f857c4 Mon Sep 17 00:00:00 2001 From: isaacs Date: Sat, 5 Oct 2019 00:32:33 -0700 Subject: [PATCH] git: --shallow-submodules not supported everywhere --- lib/util/git/clone.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/util/git/clone.js b/lib/util/git/clone.js index 7d6cbdeb..4e8827a5 100644 --- a/lib/util/git/clone.js +++ b/lib/util/git/clone.js @@ -91,7 +91,7 @@ const branch = (repo, revDoc, target, opts) => { '--recurse-submodules', ] if (maybeShallow(repo, opts)) - args.push('--depth=1', '--shallow-submodules') + args.push('--depth=1') if (isWindows(opts)) args.push('--config', 'core.longpaths=true') return spawn(args, {}, opts).then(() => revDoc.sha) @@ -106,7 +106,7 @@ const plain = (repo, revDoc, target, opts) => { '--recurse-submodules' ] if (maybeShallow(repo, opts)) - args.push('--depth=1', '--shallow-submodules') + args.push('--depth=1') if (isWindows(opts)) args.push('--config', 'core.longpaths=true') return spawn(args, {}, opts).then(() => revDoc.sha)