Skip to content

Commit

Permalink
Preventing the parser from looking into the .git folder.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaa123 committed Dec 4, 2012
1 parent df64a7e commit a7435ab
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions lib/chimney/parser.js
Expand Up @@ -23,10 +23,16 @@ function walk(dir, done) {
file = dir + '/' + file;
fs.stat(file, function (err, stat) {
if (stat && stat.isDirectory()) {
walk(file, function (err, res) {
results = results.concat(res);
if (!file.match('\.git')) {
console.log('processing', file);
walk(file, function (err, res) {
results = results.concat(res);
next();
});
} else {
console.log('git found');
next();
});
}
} else {
results.push(file);
next();
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "chimney",
"description": "chimney consumes logs to keep you warm.",
"version": "0.1.0",
"version": "0.1.1",
"author": "Michael Sokol <mikaa123@gmail.com>",
"repository": {
"type": "git",
Expand Down

0 comments on commit a7435ab

Please sign in to comment.