Commit f7bbdce
Skip fast repo discovery when GIT_DIR/GIT_WORK_TREE env vars are set
When GIT_DIR, GIT_WORK_TREE, or GIT_CEILING_DIRECTORIES environment
variables are set, the filesystem-based fast discovery path may find a
different repository than git's own discovery logic. Fall back to the
git-exec path (git rev-parse) which honours these env vars.
Addresses Devin review feedback on PR #809.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent cf94d14 commit f7bbdce
1 file changed
Lines changed: 33 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2502 | 2502 | | |
2503 | 2503 | | |
2504 | 2504 | | |
| 2505 | + | |
| 2506 | + | |
| 2507 | + | |
| 2508 | + | |
| 2509 | + | |
| 2510 | + | |
| 2511 | + | |
| 2512 | + | |
| 2513 | + | |
| 2514 | + | |
2505 | 2515 | | |
2506 | 2516 | | |
2507 | 2517 | | |
| |||
3988 | 3998 | | |
3989 | 3999 | | |
3990 | 4000 | | |
| 4001 | + | |
| 4002 | + | |
| 4003 | + | |
| 4004 | + | |
| 4005 | + | |
| 4006 | + | |
| 4007 | + | |
| 4008 | + | |
| 4009 | + | |
| 4010 | + | |
| 4011 | + | |
| 4012 | + | |
| 4013 | + | |
| 4014 | + | |
| 4015 | + | |
| 4016 | + | |
| 4017 | + | |
| 4018 | + | |
| 4019 | + | |
| 4020 | + | |
| 4021 | + | |
| 4022 | + | |
| 4023 | + | |
3991 | 4024 | | |
3992 | 4025 | | |
3993 | 4026 | | |
| |||
0 commit comments