mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-16 14:47:49 -06:00
fix: an uncached tip offline is unknown
Offline, resolve_head answered None for a tip the cache never stored, as for a branch the forge does not have. select_views then dropped xenios-jp/XeniOS and judged its citations against has207/xenia-edge. The tip and the dated commit now raise NotCachedError, and the profile is skipped as unread.
This commit is contained in:
1 parent
402e688b01
commit
3bad1ad35e
5 files changed
+85
-15
No files matched your search
@@ -1154,11 +1154,19 @@ def select_views(
|
||||
branch = declared if pin_field == "source" else None
|
||||
head = None
|
||||
try:
|
||||
unread: upstream.NotCachedError | None = None
|
||||
for candidate in branch_candidates(url):
|
||||
head = upstream.resolve_head(repo, cache_dir, offline, candidate)
|
||||
try:
|
||||
head = upstream.resolve_head(repo, cache_dir, offline, candidate)
|
||||
except upstream.NotCachedError as exc:
|
||||
# Another prefix of the /tree/ tail may be the cached branch.
|
||||
unread = exc
|
||||
continue
|
||||
if head:
|
||||
branch = candidate
|
||||
break
|
||||
if unread and not head:
|
||||
raise unread
|
||||
pin, origin = resolve_pin(
|
||||
profile, repo, cache_dir, offline, pin_field, mode, branch
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user