@@ -24,7 +24,7 @@ const { basename, resolve } = require('path')
24
24
25
25
const revs = require ( './revs.js' )
26
26
const spawn = require ( './spawn.js' )
27
- const { isWindows, escapePath } = require ( './utils.js' )
27
+ const { isWindows } = require ( './utils.js' )
28
28
29
29
const pickManifest = require ( 'npm-pick-manifest' )
30
30
const fs = require ( 'fs' )
@@ -112,7 +112,7 @@ const branch = (repo, revDoc, target, opts) => {
112
112
'-b' ,
113
113
revDoc . ref ,
114
114
repo ,
115
- escapePath ( target , opts ) ,
115
+ target ,
116
116
'--recurse-submodules'
117
117
]
118
118
if ( maybeShallow ( repo , opts ) ) { args . push ( '--depth=1' ) }
@@ -125,7 +125,7 @@ const plain = (repo, revDoc, target, opts) => {
125
125
const args = [
126
126
'clone' ,
127
127
repo ,
128
- escapePath ( target , opts ) ,
128
+ target ,
129
129
'--recurse-submodules'
130
130
]
131
131
if ( maybeShallow ( repo , opts ) ) { args . push ( '--depth=1' ) }
@@ -151,7 +151,7 @@ const unresolved = (repo, ref, target, opts) => {
151
151
// can't do this one shallowly, because the ref isn't advertised
152
152
// but we can avoid checking out the working dir twice, at least
153
153
const lp = isWindows ( opts ) ? [ '--config' , 'core.longpaths=true' ] : [ ]
154
- const cloneArgs = [ 'clone' , '--mirror' , '-q' , repo , escapePath ( target + '/.git' , opts ) ]
154
+ const cloneArgs = [ 'clone' , '--mirror' , '-q' , repo , target + '/.git' ]
155
155
const git = ( args ) => spawn ( args , { ...opts , cwd : target } )
156
156
return mkdirp ( target )
157
157
. then ( ( ) => git ( cloneArgs . concat ( lp ) ) )
0 commit comments