From 8e33071c1baa9d1cd6622c3b6a41886b6466f2dc Mon Sep 17 00:00:00 2001 From: "nweiz@google.com" <nweiz@google.com> Date: Thu, 16 May 2013 23:24:23 +0000 Subject: [PATCH] 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 --- lib/src/entrypoint.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/src/entrypoint.dart b/lib/src/entrypoint.dart index 86327531..edfffbae 100644 --- a/lib/src/entrypoint.dart +++ b/lib/src/entrypoint.dart @@ -242,8 +242,9 @@ class Entrypoint { ["ls-files", "--cached", "--others", "--exclude-standard", beneath], workingDir: root.dir).then((files) { // Git always prints files relative to the project root, but we want - // them relative to the working directory. - return files.map((file) => path.join(root.dir, file)); + // them relative to the working directory. It also prints forward + // slashes on Windows which we normalize away for easier testing. + return files.map((file) => path.normalize(path.join(root.dir, file))); }); } -- GitLab