Skip to content

Commit

Permalink
feat(config): allow untracked files via config object
Browse files Browse the repository at this point in the history
  • Loading branch information
hmagrini committed Feb 10, 2017
1 parent ed8afb7 commit 80842c8
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 @@ -172,6 +172,10 @@ function getTasks(label) {
}

function hasUntrackedFiles() {
const config = getConfig();
if(config['allow-untracked-files']) {
return Promise.resolve(false);
}
return ggit.untrackedFiles()
.then(function (names) {
return check.unempty(names);
Expand Down

0 comments on commit 80842c8

Please sign in to comment.