Commit d282ac7
committed
fix(root): clear leaked git hook env for flutter in worktrees
Git exports GIT_DIR/GIT_WORK_TREE/GIT_INDEX_FILE into hook subprocesses;
in a linked worktree GIT_DIR is absolute and hijacks flutter's internal
git (against its own SDK), breaking analyze/test and forcing --no-verify.
Wrap the mobile flutter invocations in git:pre-commit and git:pre-push
with env -u to unset those vars.1 parent a3c488d commit d282ac7
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
96 | 98 | | |
97 | 99 | | |
98 | 100 | | |
| |||
127 | 129 | | |
128 | 130 | | |
129 | 131 | | |
130 | | - | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
131 | 135 | | |
132 | 136 | | |
0 commit comments