git-partial-submodule
git-partial-submodule copied to clipboard
Fix gitmodules handling for clone command
- handle relative submodule url
- handle special branch '.'
Thanks for the PR! I think the code can likely be simplified a lot using os.path.relpath and such rather than parsing the path yourself. See how I'm doing it for the submodule paths a few lines earlier: https://github.com/Reedbeta/git-partial-submodule/blob/bd8bb4e7ace4a932455ac06a847314679194493c/git-partial-submodule.py#L194
Also, it looks like you used 3-space indents instead of 4 - I'd appreciate if you can clean that up. 🙂
Hi Nathan, yes, its a quick hack to get an experiment working. I can't spend any more time on this, sorry