Index: pkg/testing/lib/src/analyze.dart |
diff --git a/pkg/testing/lib/src/analyze.dart b/pkg/testing/lib/src/analyze.dart |
index af328f7aeaccc3ea6417b30b1be8346c192c64bc..fc32fd4ec25d2ab189118c0791331f9bf39a061d 100644 |
--- a/pkg/testing/lib/src/analyze.dart |
+++ b/pkg/testing/lib/src/analyze.dart |
@@ -158,9 +158,9 @@ Future<Null> analyzeUris( |
if (uris.isEmpty) return; |
String topLevel; |
try { |
- topLevel = Uri |
- .directory(await git("rev-parse", <String>["--show-toplevel"])) |
- .toFilePath(); |
+ topLevel = new Uri.directory( |
+ await git("rev-parse", <String>["--show-toplevel"]).trimRight()) |
+ .toFilePath(windows: false); |
} catch (e) { |
topLevel = Uri.base.toFilePath(windows: false); |
} |