Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(403)

Unified Diff: utils/pub/io.dart

Issue 10399076: Get codebase ready for actually supporting versioning. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Respond to review. Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « utils/pub/git_source.dart ('k') | utils/pub/package.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/io.dart
diff --git a/utils/pub/io.dart b/utils/pub/io.dart
index ac9836af5078e2e40ed4f6496376f3bc5fd31e5d..22982b049e354dec3b22f445bef2a47b5f76dd58 100644
--- a/utils/pub/io.dart
+++ b/utils/pub/io.dart
@@ -264,11 +264,13 @@ String getFullPath(entry) => new File(_getPath(entry)).fullPathSync();
* piped streams won't be available in the result object.
*/
Future<PubProcessResult> runProcess(String executable, List<String> args,
- [String workingDir, bool pipeStdout = false, bool pipeStderr = false]) {
+ [workingDir, bool pipeStdout = false, bool pipeStderr = false]) {
int exitCode;
final options = new ProcessOptions();
- if (workingDir != null) options.workingDirectory = workingDir;
+ if (workingDir != null) {
+ options.workingDirectory = _getDirectory(workingDir).path;
+ }
final process = Process.start(executable, args, options);
« no previous file with comments | « utils/pub/git_source.dart ('k') | utils/pub/package.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698