When working on feature branches for uploading to a testing server using the branch name as section from the ftpdata file is not helpful. The new commandline switch allows manual selection of the appropriate section from the ftpdata file. Example: git-ftp.py --section development Uses ftpdata section 'development' regardless of the active branch name.
The section was in the readme, but not yet in the manpage. Add it. Signed-off-by: Niklas Fiekas <email@example.com>
Signed-off-by: Niklas Fiekas <firstname.lastname@example.org>
When the user do a 'git push', files are uploaded on their respective branches location. Nothing happens when the branch has no entry in the ftpdata configuration file. As the hook executes after the 'git push', it won't be rejected even if the upload fails. Signed-off-by: Michal Borychowski <email@example.com> Signed-off-by: Edward Z. Yang <firstname.lastname@example.org>
- 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.