commit
33815e4cb1
3 changed files with 12 additions and 9 deletions
|
@ -1,6 +1,10 @@
|
||||||
language: node_js
|
language: node_js
|
||||||
node_js:
|
node_js:
|
||||||
- "4"
|
- "6"
|
||||||
|
|
||||||
|
cache:
|
||||||
|
directories:
|
||||||
|
- node_modules
|
||||||
|
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
12
package.json
12
package.json
|
@ -29,16 +29,16 @@
|
||||||
"async": "2.1.2",
|
"async": "2.1.2",
|
||||||
"commander": "2.9.0",
|
"commander": "2.9.0",
|
||||||
"globby": "^6.1.0",
|
"globby": "^6.1.0",
|
||||||
"graceful-fs": "4.1.6",
|
"graceful-fs": "4.1.10",
|
||||||
"q": "1.4.1",
|
"q": "1.4.1",
|
||||||
"q-io": "1.13.2",
|
"q-io": "1.13.2",
|
||||||
"rimraf": "^2.5.2"
|
"rimraf": "^2.5.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"chai": "^3.4.1",
|
"chai": "^3.5.0",
|
||||||
"eslint": "3.8.0",
|
"eslint": "^3.10.2",
|
||||||
"eslint-config-tschaub": "5.0.0",
|
"eslint-config-tschaub": "^6.0.0",
|
||||||
"mocha": "^3.1.1"
|
"mocha": "^3.1.2"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"gh-pages": "bin/gh-pages"
|
"gh-pages": "bin/gh-pages"
|
||||||
|
|
Reference in a new issue