Permalink
Browse files

Treat leading slash as relative to the current dir for consistency wi…

…th .gitignore

Signed-off-by: Anton Kovalyov <anton@kovalyov.net>
  • Loading branch information...
joshuaspence authored and valueof committed Jan 26, 2014
1 parent 61c1156 commit f349857a17d11c6f93033e37d5b789d97bc294a8
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/cli.js
View
@@ -203,7 +203,7 @@ function loadIgnores(exclude, excludePath) {
if (line[0] === "!")
return "!" + path.resolve(path.dirname(file), line.substr(1).trim());
- return path.resolve(path.dirname(file), line.trim());
+ return path.join(path.dirname(file), line.trim());
});
}

0 comments on commit f349857

Please sign in to comment.