| 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;
|
|
|