Fix call to git checkout (#15026)

In the case of "dev", `git checkout dev` could be miconstrued
as checking out the dev _directory_ rather than the branch...

https://github.com/flutter/flutter/issues/14865
This commit is contained in:
Todd Volkert
2018-03-01 09:28:15 -08:00
committed by GitHub
parent db1a942479
commit 621a963e8b

View File

@@ -108,7 +108,7 @@ class ChannelCommand extends FlutterCommand {
if (result == 0) {
// branch already exists, try just switching to it
result = await runCommandAndStreamOutput(
<String>['git', 'checkout', branchName],
<String>['git', 'checkout', branchName, '--'],
workingDirectory: Cache.flutterRoot,
prefix: 'git: ',
);