From f239f2f402551bb210c3ae0475e0349906829b46 Mon Sep 17 00:00:00 2001 From: PAkerstrand Date: Mon, 21 Nov 2016 13:23:17 +0100 Subject: [PATCH] fix(commits): Use `--no-color` for `git branch`-command When `git branch --contains ${commit}` has colored output the `inHistory` check failed --- src/lib/commits.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/commits.js b/src/lib/commits.js index 377e504f..b1f74faa 100644 --- a/src/lib/commits.js +++ b/src/lib/commits.js @@ -13,7 +13,7 @@ module.exports = function (config, cb) { if (!from) return extract() - exec('git branch --contains ' + from, function (err, stdout) { + exec('git branch --no-color --contains ' + from, function (err, stdout) { var inHistory = false var branches