Skip to content

Commit

Permalink
fix(config): do not try to find untracked files if there is no config…
Browse files Browse the repository at this point in the history
… object
  • Loading branch information
bahmutov committed Jun 2, 2017
1 parent a98ac94 commit 2a0fed6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pre-git.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@ function getTasks(label) {

function hasUntrackedFiles() {
const config = getConfig();
if (!config) {
return Promise.resolve(false);
}
if(config['allow-untracked-files']) {
return Promise.resolve(false);
}
Expand Down

0 comments on commit 2a0fed6

Please sign in to comment.