Skip to content
Snippets Groups Projects
Commit 8e33071c authored by nweiz@google.com's avatar nweiz@google.com Committed by Natalie Weizenbaum
Browse files

Normalize [Entrypoint.packageFiles] paths for Windows.

R=rnystrom@google.com

Review URL: https://codereview.chromium.org//14843025

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@22825 260f80e4-7a28-3924-810f-c04153c831b5
parent d3e139d9
No related branches found
No related tags found
No related merge requests found
...@@ -242,8 +242,9 @@ class Entrypoint { ...@@ -242,8 +242,9 @@ class Entrypoint {
["ls-files", "--cached", "--others", "--exclude-standard", beneath], ["ls-files", "--cached", "--others", "--exclude-standard", beneath],
workingDir: root.dir).then((files) { workingDir: root.dir).then((files) {
// Git always prints files relative to the project root, but we want // Git always prints files relative to the project root, but we want
// them relative to the working directory. // them relative to the working directory. It also prints forward
return files.map((file) => path.join(root.dir, file)); // slashes on Windows which we normalize away for easier testing.
return files.map((file) => path.normalize(path.join(root.dir, file)));
}); });
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment