fix(commits): Use --no-color for git branch-command

When `git branch --contains ${commit}` has colored output the `inHistory` check failed
This commit is contained in:
PAkerstrand 2016-11-21 13:23:17 +01:00 committed by Stephan Bönnemann
parent 2be6e5d34a
commit f239f2f402

View File

@ -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