emparella per nom només quan no hi ha origin remot

This commit is contained in:
2026-05-18 11:45:12 +02:00
parent 0f471bee65
commit f49512b72b
+4 -3
View File
@@ -23,7 +23,7 @@ from rich.live import Live
from rich.table import Table
from rich.text import Text
__version__ = "1.0.2"
__version__ = "1.0.3"
console = Console()
@@ -209,8 +209,9 @@ def scan_local(base: Path) -> dict[str, Path]:
url = local_remote_url(p)
if url:
found[normalize_url(url)] = p
# Siempre indexamos también por nombre como fallback
found.setdefault(f"name::{p.name}", p)
else:
# Sense origin → emparellem pel nom (per a repos locals sense remote)
found[f"name::{p.name}"] = p
return found