Skip to content

Commit

Permalink
feat(config): allow disabling pre-git hooks via config object, close #96
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov committed Nov 16, 2016
1 parent 789949e commit e9cbc61
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pre-git.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ function getTasks(label) {
la(check.object(pkg), 'missing package', pkg);

const config = getConfig();
if (!config.enabled) {
return;
}

var run = pkg[label] ||
config &&
config[label];
Expand Down

0 comments on commit e9cbc61

Please sign in to comment.