Unindent
This commit is contained in:
parent
ab5c4e570c
commit
49e48a457a
1 changed files with 1 additions and 2 deletions
|
@ -99,8 +99,7 @@ exports.clone = function clone(repo, dir, branch, options) {
|
||||||
return Q.resolve();
|
return Q.resolve();
|
||||||
} else {
|
} else {
|
||||||
return fs.makeTree(path.dirname(path.resolve(dir))).then(function() {
|
return fs.makeTree(path.dirname(path.resolve(dir))).then(function() {
|
||||||
var args = ['clone', repo, dir, '--branch', branch, '--single-branch',
|
var args = ['clone', repo, dir, '--branch', branch, '--single-branch', '--origin', options.remote];
|
||||||
'--origin', options.remote];
|
|
||||||
if (options.depth) {
|
if (options.depth) {
|
||||||
args.push('--depth', options.depth);
|
args.push('--depth', options.depth);
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue