@@ -24,7 +24,7 @@ const { basename, resolve } = require('path')
2424
2525const revs = require ( './revs.js' )
2626const spawn = require ( './spawn.js' )
27- const { isWindows, escapePath } = require ( './utils.js' )
27+ const { isWindows } = require ( './utils.js' )
2828
2929const pickManifest = require ( 'npm-pick-manifest' )
3030const fs = require ( 'fs' )
@@ -112,7 +112,7 @@ const branch = (repo, revDoc, target, opts) => {
112112 '-b' ,
113113 revDoc . ref ,
114114 repo ,
115- escapePath ( target , opts ) ,
115+ target ,
116116 '--recurse-submodules'
117117 ]
118118 if ( maybeShallow ( repo , opts ) ) { args . push ( '--depth=1' ) }
@@ -125,7 +125,7 @@ const plain = (repo, revDoc, target, opts) => {
125125 const args = [
126126 'clone' ,
127127 repo ,
128- escapePath ( target , opts ) ,
128+ target ,
129129 '--recurse-submodules'
130130 ]
131131 if ( maybeShallow ( repo , opts ) ) { args . push ( '--depth=1' ) }
@@ -151,7 +151,7 @@ const unresolved = (repo, ref, target, opts) => {
151151 // can't do this one shallowly, because the ref isn't advertised
152152 // but we can avoid checking out the working dir twice, at least
153153 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' ]
155155 const git = ( args ) => spawn ( args , { ...opts , cwd : target } )
156156 return mkdirp ( target )
157157 . then ( ( ) => git ( cloneArgs . concat ( lp ) ) )
0 commit comments