Index: sdk/lib/_internal/pub/lib/src/io.dart |
diff --git a/sdk/lib/_internal/pub/lib/src/io.dart b/sdk/lib/_internal/pub/lib/src/io.dart |
index 193bc4a8f28a5413040416eb451723704a65704f..f61f47e5f7fdb6a532e0341d67b71c5cca3cd909 100644 |
--- a/sdk/lib/_internal/pub/lib/src/io.dart |
+++ b/sdk/lib/_internal/pub/lib/src/io.dart |
@@ -591,19 +591,12 @@ Future _doProcess(Function fn, String executable, List<String> args, |
executable = "cmd"; |
} |
- var env = null; |
- if (environment != null) { |
- env = new Map.from(Platform.environment); |
- environment.forEach((key, value) => env[key] = value); |
- } |
- |
- |
log.process(executable, args); |
return fn(executable, |
args, |
workingDirectory: workingDir, |
- environment: env); |
+ environment: environment); |
} |
/// Wraps [input] to provide a timeout. If [input] completes before |