Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit f349857a17d11c6f93033e37d5b789d97bc294a8 1 parent 61c1156
@joshuaspence joshuaspence authored valueof committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/cli.js
View
2  src/cli.js
@@ -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());
});
}
Please sign in to comment.
Something went wrong with that request. Please try again.