Repository navigation
Commit 54d5f8c
fix(gix): omit dangling symbolic references from enumeration
`for-each-ref` omits symbolic references whose targets do not exist, while
GixPython's reference iterator yields them. This made `Repo.heads` include
branches that the CLI backend would omit.
Resolve symbolic targets while retaining their original names. A dangling
target uses the existing read-error fallback, allowing Git to handle its
filtering and diagnostics. Valid symbolic aliases still use native enumeration.
The regression failed for both SHA-1 and SHA-256 before the fix. All six
selected enumeration, query, and reference tests now pass, as do Ruff lint
and format checks.1 parent f2d3853 commit 54d5f8c
2 files changed
Lines changed: 19 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
196 | 201 | | |
197 | 202 | | |
198 | 203 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
159 | 172 | | |
160 | 173 | | |
161 | 174 | | |
| |||
0 commit comments