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

Unified Diff: sdk/lib/_internal/pub_generated/lib/src/git.dart

Issue 887223007: Revert "Use native async/await support in pub." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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
Index: sdk/lib/_internal/pub_generated/lib/src/git.dart
diff --git a/sdk/lib/_internal/pub/lib/src/git.dart b/sdk/lib/_internal/pub_generated/lib/src/git.dart
similarity index 82%
copy from sdk/lib/_internal/pub/lib/src/git.dart
copy to sdk/lib/_internal/pub_generated/lib/src/git.dart
index 53d69d89f3d6012776888d85db5beea3a0148a17..a574e8a6865e7814c2ef024dc1b502106a2b0dfa 100644
--- a/sdk/lib/_internal/pub/lib/src/git.dart
+++ b/sdk/lib/_internal/pub_generated/lib/src/git.dart
@@ -43,15 +43,18 @@ bool _isInstalledCache;
///
/// Returns the stdout as a list of strings if it succeeded. Completes to an
/// exception if it failed.
-Future<List<String>> run(List<String> args,
- {String workingDir, Map<String, String> environment}) {
+Future<List<String>> run(List<String> args, {String workingDir, Map<String,
+ String> environment}) {
if (!isInstalled) {
- fail("Cannot find a Git executable.\n"
- "Please ensure Git is correctly installed.");
+ fail(
+ "Cannot find a Git executable.\n" "Please ensure Git is correctly installed.");
}
log.muteProgress();
- return runProcess(_gitCommand, args, workingDir: workingDir,
+ return runProcess(
+ _gitCommand,
+ args,
+ workingDir: workingDir,
environment: environment).then((result) {
if (!result.success) throw new GitException(args, result.stderr.join("\n"));
@@ -62,14 +65,16 @@ Future<List<String>> run(List<String> args,
}
/// Like [run], but synchronous.
-List<String> runSync(List<String> args, {String workingDir,
- Map<String, String> environment}) {
+List<String> runSync(List<String> args, {String workingDir, Map<String,
+ String> environment}) {
if (!isInstalled) {
- fail("Cannot find a Git executable.\n"
- "Please ensure Git is correctly installed.");
+ fail(
+ "Cannot find a Git executable.\n" "Please ensure Git is correctly installed.");
}
- var result = runProcessSync(_gitCommand, args,
+ var result = runProcessSync(
+ _gitCommand,
+ args,
workingDir: workingDir,
environment: environment);
if (!result.success) throw new GitException(args, result.stderr.join("\n"));
@@ -84,7 +89,7 @@ String get _gitCommand {
var command;
if (_tryGitCommand("git")) {
_commandCache = "git";
- } else if (_tryGitCommand("git.cmd")){
+ } else if (_tryGitCommand("git.cmd")) {
_commandCache = "git.cmd";
} else {
return null;
« no previous file with comments | « sdk/lib/_internal/pub_generated/lib/src/exit_codes.dart ('k') | sdk/lib/_internal/pub_generated/lib/src/global_packages.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698