This commit is contained in:
Tim Schaub 2016-11-16 18:03:33 -07:00
parent ab5c4e570c
commit 49e48a457a

View file

@ -99,8 +99,7 @@ exports.clone = function clone(repo, dir, branch, options) {
return Q.resolve();
} else {
return fs.makeTree(path.dirname(path.resolve(dir))).then(function() {
var args = ['clone', repo, dir, '--branch', branch, '--single-branch',
'--origin', options.remote];
var args = ['clone', repo, dir, '--branch', branch, '--single-branch', '--origin', options.remote];
if (options.depth) {
args.push('--depth', options.depth);
}