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