git pull --ff-only (#54987)

This commit is contained in:
Jenn Magder 2020-04-16 14:20:48 -07:00 committed by GitHub
parent f1d522d503
commit ce83aaf38d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -236,7 +236,7 @@ class UpgradeCommandRunner {
/// returns true, otherwise returns false.
Future<bool> attemptFastForward(FlutterVersion oldFlutterVersion) async {
final int code = await processUtils.stream(
<String>['git', 'pull', '--ff'],
<String>['git', 'pull', '--ff-only'],
workingDirectory: workingDirectory,
mapFunction: (String line) => matchesGitLine(line) ? null : line,
);