ifcurl/ifcurl
Bruno Postle 03782ec9f7 Fix fetch-on-miss for PR commits: catch ValueError from GitPython directly
GitPython raises a plain ValueError from _parse_object_header when a commit
hash is missing, not BadObject, so the previous message-based retry guard
("not found in repository") never matched. Broaden the except clause to catch
(ValueError, BadObject, BadName) and drop the fragile string check. Extract
the fetch logic into _fetch_all_refs helper and apply the same retry to
diff_text. Add tests covering _fetch_all_refs, the retry-on-BadObject path,
and the no-retry-for-local-transport invariant.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-16 08:56:07 +01:00
..
__init__.py Preview service and improved CLI help 2026-04-15 21:46:50 +01:00
__main__.py Split service into ifcurl-api + ifcurl-render for RCE isolation 2026-04-25 10:00:33 +01:00
auth.py service: fix preview pipeline for local Forgejo deployment 2026-04-25 23:10:35 +01:00
bcf.py bcf_api: implement BCF 3.0 REST API as Python routes in the preview service 2026-04-29 19:38:34 +01:00
bcf_api.py bcf_api: add topic filtering; documents_api: add GET /document-metadata 2026-04-29 22:24:52 +01:00
diff.py style: ruff --fix + black across ifcurl/ and tests/ 2026-04-25 08:34:56 +01:00
documents_api.py bcf_api: add topic filtering; documents_api: add GET /document-metadata 2026-04-29 22:24:52 +01:00
git.py Fix fetch-on-miss for PR commits: catch ValueError from GitPython directly 2026-05-16 08:56:07 +01:00
py.typed Python core library and ifcurl CLI 2026-04-15 21:24:35 +01:00
render.py Implement clash visibility mode and /query endpoint (ifcurl-19h, ifcurl-8rf) 2026-05-09 08:46:26 +00:00
render_service.py Simplify /clash: single selector, detect collisions within selected set 2026-05-09 08:57:54 +00:00
sandbox.py style: ruff --fix + black across ifcurl/ and tests/ 2026-04-25 08:34:56 +01:00
service.py Enforce spec: validate query dot notation, improve tooltip 2026-05-09 15:26:07 +00:00
url.py url.py, test_url.py: add query parameter and visibility=clash 2026-05-09 07:27:35 +00:00