[Pkg-javascript-commits] [node-coveralls] 113/332: Final fixes for detached head mode (93% cov against 94% cov in branch mode)

Bastien Roucariès rouca at moszumanska.debian.org
Thu Nov 9 13:53:47 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-coveralls.

commit 270950f1103177b916842047c623042c715bc08e
Author: Christophe Porteneuve <tdd at tddsworld.com>
Date:   Fri Nov 15 09:26:56 2013 +0100

    Final fixes for detached head mode (93% cov against 94% cov in branch mode)
---
 test/getOptions.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/getOptions.js b/test/getOptions.js
index d0c4173..5afd9e5 100644
--- a/test/getOptions.js
+++ b/test/getOptions.js
@@ -279,7 +279,7 @@ var testCodeship = function(sut, done) {
   process.env.CI_NAME = 'codeship';
   process.env.CI_BUILD_NUMBER = '1234';
   process.env.CI_COMMIT_ID = "e3e3e3e3e3e3e3e3e";
-  process.env.CI_COMMIT_BRANCH = "e3e3e3e3e3e3e3e3e";
+  process.env.CI_BRANCH = "master";
   sut(function(err, options){
     options.service_name.should.equal("codeship");
     options.service_job_id.should.equal("1234");
@@ -346,7 +346,7 @@ function ensureLocalGitContext(options) {
     content = fs.readFileSync(gitHead, 'utf-8').trim();
     var b = (content.match(/^ref: refs\/heads\/(\S+)$/) || [])[1];
     if (!b) {
-      id = b;
+      id = content;
     } else {
       id = fs.readFileSync(path.join(gitDir, 'refs', 'heads', b), 'utf-8').trim();
       fs.writeFileSync(gitHead, id, 'utf-8');

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-coveralls.git



More information about the Pkg-javascript-commits mailing list