flutteractionsbot b1b9dee132
[CP-beta]Unset GIT_DIR and other variables before updating (#165841)
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.
2025-04-08 19:26:20 +00:00
..
2025-03-06 18:01:43 +00:00
2025-03-06 21:21:52 +00:00
2025-02-27 19:38:00 +00:00

This directory contains tools and resources that the Flutter team uses during the development of the framework. The tools in this directory should not be necessary for developing Flutter applications, though of course, they may be interesting if you are curious.

The tests in this directory are run in the framework_tests_misc-* shards.