Commit a5b1d1f
committed
fix: handle detached HEAD state in repository scanner
- Wrap repo.active_branch.name in try/except
- Fallback to 'HEAD' when in detached HEAD state
- Fixes CI failure where GitHub Actions checks out in detached HEAD
Error: TypeError: HEAD is a detached symbolic reference
Occurs in CI environments during git checkout1 parent df272f2 commit a5b1d1f
1 file changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
167 | 174 | | |
168 | 175 | | |
169 | 176 | | |
| |||
0 commit comments