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:
@@ -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: ',
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user