Skip to content

Have "flutter upgrade" automatically call "git stash" and show message #9218

@sethladd

Description

@sethladd

This is what you see when you run flutter upgrade but have a conflict:

sethladd-macbookpro:flutter_gallery sethladd$ flutter upgrade
Upgrading Flutter from /Users/sethladd/Code/flutter...
From https://github.com/flutter/flutter
   244a7a02b..d2abdf8e6  master     -> origin/master
error: Your local changes to the following files would be overwritten by merge:
	examples/flutter_gallery/.idea/modules.xml
Please commit your changes or stash them before you merge.
Aborting
Updating 657a4c3fc..d2abdf8e6

Note the "Updating ..." which I thought meant "update complete!"

Actually, due to the conflict when merging, the update didn't complete. :/

Can we print out a clearer message when the update fails? Something like: "Upgrade failed. Please see output above, or run flutter upgrade -v for more info."

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    toolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions