You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Git warning of a missing default when upgrading Flutter #54983
On running flutter upgrade on master, this error is now shown:
$ flutter upgrade
Upgrading Flutter from /Users/timsneath/flutter...
warning: Pulling without specifying how to reconcile divergent branches is
discouraged. You can squelch this message by running one of the following
commands sometime before your next pull:
git config pull.rebase false # merge (the default strategy)
git config pull.rebase true # rebase
git config pull.ff only # fast-forward only
You can replace "git config" with "git config --global" to set a default
preference for all repositories. You can also pass --rebase, --no-rebase,
or --ff-only on the command line to override the configured default per
invocation.
This is a new warning from Git, but it's likely confusing to casual Flutter users, who will not expect to have to deal with this or necessarily know which is the right option to select for Flutter.
As the warning notes, you can "pass --rebase, --no-rebase, or --ff-only on the command line to override the configured default per invocation" on those overrides when we call git from flutter upgrade. We should do that, since it doesn't disturb the user's config.
If I've understood the underlying problem, this is orthogonal to Flutter release -- anyone who updates to the latest version of Git will start hitting it until they upgrade to a version that includes @jmagman's commit. So getting this out in 1.17 is valuable. Please correct me if I'm wrong, @jmagman or @christopherfujino!
If I've understood the underlying problem, this is orthogonal to Flutter release -- anyone who updates to the latest version of Git will start hitting it until they upgrade to a version that includes @jmagman's commit. So getting this out in 1.17 is valuable. Please correct me if I'm wrong, @jmagman or @christopherfujino!
Correct, this will affect all versions of flutter that don't have this change.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
timsneath commentedon Apr 16, 2020
Boom! How about that for a fast turnaround! Thanks, @jmagman!
pcsosinski commentedon Apr 16, 2020
does this affect 1.17 as well?
timsneath commentedon Apr 17, 2020
If I've understood the underlying problem, this is orthogonal to Flutter release -- anyone who updates to the latest version of Git will start hitting it until they upgrade to a version that includes @jmagman's commit. So getting this out in 1.17 is valuable. Please correct me if I'm wrong, @jmagman or @christopherfujino!
christopherfujino commentedon Apr 17, 2020
Correct, this will affect all versions of flutter that don't have this change.
pcsosinski commentedon Apr 22, 2020
fixed in 1.17.0-3.2.pre
github-actions commentedon Aug 22, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.