diff options
Diffstat (limited to 'lib/getOptions.js')
| -rw-r--r-- | lib/getOptions.js | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/lib/getOptions.js b/lib/getOptions.js index 973b82b..deb1072 100644 --- a/lib/getOptions.js +++ b/lib/getOptions.js @@ -2,6 +2,7 @@ var fs = require('fs'); var path = require('path'); var yaml = require('yaml'); var logger = require('./logger')(); +var git = require('./fetchGitData'); var getOptions = function(){ var options = {}; @@ -41,23 +42,12 @@ var getOptions = function(){ } if (git_commit){ - options.git = { - "head": { - "id": git_commit, - "author_name": "Unknown Author", - "author_email": "", - "committer_name": "Unknown Committer", - "committer_email": "", - "message": "Unknown Commit Message" + options.git = git({ + head: { + id: git_commit }, - "branch": git_branch /*, - "remotes": [ - { - "name": "origin", - "url": "[email protected]:lemurheavy/coveralls-ruby.git" - } - ]*/ - }; + branch: git_branch + }); } options.run_at = process.env.COVERALLS_RUN_AT || JSON.stringify(new Date()).slice(1, -1); |
