Skip to content

Commit

Permalink
Fix compatibility with Node 8 on timeout option (#53)
Browse files Browse the repository at this point in the history
* Fix compatibility with Node 8 on timeout option
* Add Node 6 and 8 to Travis
  • Loading branch information
diagramatics authored and subesokun committed Feb 13, 2018
1 parent 25476b3 commit d2aa5d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ language: node_js
node_js:
- 0.10
- 0.11
- 6
- 8
2 changes: 1 addition & 1 deletion git.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ var GitLocation = function(options) {

this.execOpt = {
cwd: options.tmpDir,
timeout: options.timeout * 1000,
timeout: (options.timeout || 0) * 1000,
killSignal: 'SIGKILL',
maxBuffer: this.maxRepoSize || 2 * 1024 * 1024
};
Expand Down

0 comments on commit d2aa5d6

Please sign in to comment.