mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
This pull request is created by [automatic cherry pick workflow](https://github.com/flutter/flutter/blob/main/docs/releases/Flutter-Cherrypick-Process.md#automatically-creates-a-cherry-pick-request) Please fill in the form below, and a flutter domain expert will evaluate this cherry pick request. ### Issue Link: When the `GIT_DIR` environment variable is set; the flutter tool will lose track of engine artifacts. https://github.com/flutter/flutter/issues/165390 ### Changelog Description: #165390: fix flutter tool finding engine artifacts in special cases where `GIT_DIR` is defined. ### Impact Description: No impact on apps. ### Workaround: Unset the environment variable `GIT_DIR` before calling flutter tooling. ### Risk: ### Test Coverage: ### Validation Steps: Define `GIT_DIR` before this chage and see the flutter tool loses the engine artifacts. After this change it operates correctly.