code: function checkBranch (branches, cb) {
    if (branches === "ALL") {
      return cb(null, true);
    }
  
    if (!_.isArray(branches)) {
      branches = _.invoke(branches.split(","), "trim");
    }
  
    return git.currentBranch().then(function (branch) {
      return [_.any(branches, _.partial(minimatch, branch)), branch];
    });
  }
docs: Check if hook is enabled on current branch String ~→ Boolean