You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Repository reference with a .. host resolves outside the repos cache and gets deleted #51576
A git reference whose host is . or .. is accepted by Repository.parse, for example ..:docs or ssh://../docs. Repository.cachePath joins the host into the cache path, so ..:docs resolves to <data>/docs instead of a folder inside <data>/repos.
When that path exists and isn't a matching checkout, RepositoryCache.ensure removes it recursively before cloning. The clone then fails. So a references entry like this deletes whatever sits at that name in the opencode data directory.
Activity