Open
Description
There's a somewhat lesser known feature in git where you can use aliases for your remote URLs by putting something like
[url "ssh://git@github.com/"]
insteadOf = "gh:"
And then use git clone gh:Byron/gitoxide
instead of typing out the entire URL.
As of 0.9, gitoxide fails to parse those remotes:
~/scratch
❯ git clone gh:Byron/gitoxide
Cloning into 'gitoxide'...
remote: Enumerating objects: 24757, done.
remote: Counting objects: 100% (5485/5485), done.
remote: Compressing objects: 100% (2069/2069), done.
remote: Total 24757 (delta 3133), reused 5447 (delta 3101), pack-reused 19272
Receiving objects: 100% (24757/24757), 5.50 MiB | 7.97 MiB/s, done.
Resolving deltas: 100% (14407/14407), done.
~/scratch
❯ gix t organize
11:17:42 organize Error when handling directory "./gitoxide": Remote URLs must have host names: file://gh:Byron/gitoxide
Error: Failed to handle 1 repositories
I'm not sure if gitoxide can parse .gitconfig
files right now, so this might be tricky to handle correctly...