Unverified Commit 621a963e authored by Todd Volkert's avatar Todd Volkert Committed by GitHub

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
parent db1a9424
......@@ -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: ',
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment