mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-20 20:34:19 +00:00
Hub index fetch previously handled only unauthenticated HTTP(S) GET or local file paths, leaving private and GitHub Enterprise repos out of reach — raw HTTPS URLs redirect to login before token headers apply, and SSH-style hub URLs were unrecognized. Resolve SSH hub sources by shallow-cloning the repo with the user's SSH keys and reading the index from it. The in-repo index path uses the existing //path subdir convention (consistent with `install`), defaulting to skillshare-hub.json at the repo root. Both scp-style and ssh:// URLs are accepted. In the web dashboard, SSH clones are restricted to saved hubs so a request-supplied URL can't drive an arbitrary clone. Ref #185