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)