Skip to content
Snippets Groups Projects
Unverified Commit 52e4214d authored by Chris Bracken's avatar Chris Bracken Committed by GitHub
Browse files

Fix crash on flutter update-packages (#28922)

When running git update-packages, if the goldens repo is dirty, the
flutter tool currently crashes and logs the failure from git pull.

This adds a check for a dirty git client and emits a friendlier error
message in the case where it's not clean, and avoid the crash by
catching the NonZeroExitCode exception and rethrowing as toolExit
instead.

Fixes: https://github.com/flutter/flutter/issues/28915
parent 4c1f4d14
No related merge requests found
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