A question about [Git Pull] to the official repo
#1
I have a question: can [Git Pull] pull an addon not from a top-level Github repo, but from its subfolder? For example, I don't want to put my addon code at the top level of my repository but instead I want to create a separate sub-folder for it, along with other suborders for docs, unit tests and so on.
I.e. instead of
Code:
my.addon.foo/
   addon.xml
   main.py
   icon.png

I want to use this repo structure:

Code:
my_repo/
   docs/
   ...
   tests/
   ...
   my.addon.foo/
            addon.xml
            main.py
            icon.png
Or in this case I need to pack my addon into a ZIP and use [Zip Pull]?
Reply
#2
There is a way to do it, but IMO it's a pain in the ass.
It's called sparse checkout.

http://jasonkarns.com/blog/subdirectory-...-checkout/
Reply
#3
Actually, it was a specific question to Kodi developers who maintain the official addon repo. But since nobody has answered, I'll use [Zip Pull] then.
Reply
#4
Can't answer if the mailing list maintainers can to this, but if you send the pull request directly on gihub you can create the pr however you want as long as it conforms to the guidelines. It's possible to do what you want using subtree merging (specifically the git read-tree command. You can specify the sub-directory it should read from)
Reply

Logout Mark Read Team Forum Stats Members Help
A question about [Git Pull] to the official repo0