emparella per nom només quan no hi ha origin remot
This commit is contained in:
+4
-3
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user