Commit 83c3e64
Address review feedback about dangling commondir
Review feedback noted that a dangling commondir symlink was treated as absent, allowing local objects and refs to validate the repository.
Distinguish a truly missing commondir from a dangling symlink. This follows Git's get_common_dir_noenv(), whose file_exists check uses lstat before attempting to read the entry.
Git baseline: 15c6308cf7ad276b306aa5b3ababfbdebfb1a917, setup.c get_common_dir_noenv() and dir.c file_exists().
Validation: 8 focused tests and 12 subtests; Ruff check and format; mypy; compileall; git diff --check.1 parent b8c000e commit 83c3e64
2 files changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
90 | 91 | | |
91 | | - | |
| 92 | + | |
92 | 93 | | |
| 94 | + | |
| 95 | + | |
93 | 96 | | |
94 | 97 | | |
95 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
184 | 195 | | |
185 | 196 | | |
186 | 197 | | |
| |||
0 commit comments