Skip to content

Commit

Permalink
git: --shallow-submodules not supported everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Oct 29, 2019
1 parent 408964d commit dddbf75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/util/git/clone.js
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit dddbf75

Please sign in to comment.