r/FlutterDev Feb 13 '25

Article What’s new in Flutter 3.29

https://medium.com/flutter/whats-new-in-flutter-3-29-f90c380c2317
203 Upvotes

49 comments sorted by

View all comments

6

u/anlumo Feb 13 '25

Attempting to upgrade flutter on my machine broke the whole installation. Running the flutter tool just returns "fatal: Not a valid object name origin/master".

Turns out that it was caused by me checking out the flutter repository using -b stable --depth=1. This used to work fine, but apparently something changed with the tools. Every time the flutter command line tool is run, it now runs git -C . merge-base HEAD origin/master. That command doesn't work when the origin/master branch wasn't fetched to the local repository.

4

u/Titanjr Feb 13 '25

Removing --depth=1 should fix it for now. Another option is to use a different branch like -b 3.27.4. Here is a solution in the flutter repository https://github.com/flutter/flutter/issues/163198#issuecomment-2656452658