Pull git submodules as [hg]git+ssh instead of [git]
Created originally on Bitbucket by yajo (Jairo Llopis)
When cloning a git repository that has submodules, hg-git translates the .gitmodules
file into a .hgsub
file.
That's very nice, but forces the developer to use git on those subrepositories.
If instead of saving the submodules in .hgsub
as subfolder = [git]example.com/repo.git
, they were saved as subfolder = [hg]git+ssh://example.com/repo.git
, then hg-git
would handle those submodules and the developer could be able to use mercurial everywhere.
I guess .hgsubstate
would need some extra work too, but I'd love this feature.