Index: utils/tests/pub/test_pub.dart |
diff --git a/utils/tests/pub/test_pub.dart b/utils/tests/pub/test_pub.dart |
index 08b3e178e8ac410e0ba5b1a46e0fd6ff7f645e35..22c9485ae46605f0c769dc5dfb6ed5590fe6c1a0 100644 |
--- a/utils/tests/pub/test_pub.dart |
+++ b/utils/tests/pub/test_pub.dart |
@@ -983,11 +983,12 @@ class GitRepoDescriptor extends DirectoryDescriptor { |
} |
Future<String> _runGit(List<String> args, Directory workingDir) { |
- return runProcess('git', args, workingDir: workingDir.path). |
- transform((result) { |
- if (!result.success) throw "Error running git: ${result.stderr}"; |
- return result.stdout; |
- }); |
+ return gitCommand.chain((git) { |
+ return runProcess('git', args, workingDir: workingDir.path); |
Bob Nystrom
2012/09/11 16:18:55
Unquote 'git'. :)
nweiz
2012/09/11 19:25:11
Done.
|
+ }).transform((result) { |
+ if (!result.success) throw "Error running git: ${result.stderr}"; |
+ return result.stdout; |
+ }); |
} |
} |