Please sign in to comment.
Partial and full uploading of submodules
- Import `git.Submodule` - Only build up the directory structure for file status A(dded). For a blob build up all the parent directories, for a submodule build the parent directory and the submodule directory itself. - Upload the item. If it's not a blob get the properties of the submodule: * `module` (used like `git.Repo`) * `module_tree` (the tree to upload) * `module_oldtree` (the tree to diff against for M, an empty tree for A) * `module_base` (Base directory of the module. Change to this directory, then perform a recursive upload_diff. Don't forget to change back afterwards.) - Bump copyright to 2011 - Add myself to the copyright notice. Thanks for the invitation to do so. Possible uncovered cases: - A submodule could be manually deleted from `.gitmodules` and `.git/config`. File status is D in that case, but the submodules files will not be deleted on the server. A warning will be logged in this case. - Be `file` the path of a submodule. Then `tree[file]` is a `git.Submodule`. However `oldtree[file]` must not necessarily be a submodule. An assertion will fail in this case. Also note: - The optional quiet parameter on upload_blob is no longer used, but I didn't remove it.
- Loading branch information...