From 7ffe6dc9de3ac5b1c046b2cfc8f02119cf05948e Mon Sep 17 00:00:00 2001 From: Nick Merwin Date: Tue, 21 Apr 2020 11:34:17 -0700 Subject: [PATCH] Update getOptions.js * Revert https://github.com/nickmerwin/node-coveralls/commit/3d83b4f29f2dbf6f4a642ba24976d4ecbd5d56b1#diff-55c2772ed44f17a0079fc5dabe37be63R29 to fix Travis fails due to missing git object --- lib/getOptions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/getOptions.js b/lib/getOptions.js index c56264c4..7fcbf089 100644 --- a/lib/getOptions.js +++ b/lib/getOptions.js @@ -26,7 +26,7 @@ const getBaseOptions = cb => { options.service_name = 'travis-ci'; options.service_job_id = process.env.TRAVIS_JOB_ID; options.service_pull_request = process.env.TRAVIS_PULL_REQUEST; - git_commit = process.env.TRAVIS_COMMIT || 'HEAD'; + git_commit = 'HEAD'; git_branch = process.env.TRAVIS_BRANCH; }