diff options
author | FC Stegerman <flx@obfusk.net> | 2023-01-08 04:44:28 +0100 |
---|---|---|
committer | FC Stegerman <flx@obfusk.net> | 2023-01-08 04:44:28 +0100 |
commit | 4110b613833fb4039847ac80ca8571f4ec8ebe50 (patch) | |
tree | 2855e52bccf29ce3e67bde9abebf15ac42d1bb90 /git/objects | |
parent | fbc36f9cefa3a7e150187dabf8758a53062c5b47 (diff) | |
download | gitpython-4110b613833fb4039847ac80ca8571f4ec8ebe50.tar.gz |
fix/add allow_unsafe_* params in docstrings + fix typo
Diffstat (limited to 'git/objects')
-rw-r--r-- | git/objects/submodule/base.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/git/objects/submodule/base.py b/git/objects/submodule/base.py index 9aa9deb2..7db64d70 100644 --- a/git/objects/submodule/base.py +++ b/git/objects/submodule/base.py @@ -287,7 +287,9 @@ class Submodule(IndexObject, TraversableIterableObj): :param url: url to clone from :param path: repository - relative path to the submodule checkout location :param name: canonical of the submodule - :param kwrags: additinoal arguments given to git.clone""" + :param allow_unsafe_protocols: Allow unsafe protocols to be used, like ext + :param allow_unsafe_options: Allow unsafe options to be used, like --upload-pack + :param kwargs: additional arguments given to git.clone""" module_abspath = cls._module_abspath(repo, path, name) module_checkout_path = module_abspath if cls._need_gitfile_submodules(repo.git): @@ -411,6 +413,8 @@ class Submodule(IndexObject, TraversableIterableObj): as its value. :param clone_multi_options: A list of Clone options. Please see ``git.repo.base.Repo.clone`` for details. + :param allow_unsafe_protocols: Allow unsafe protocols to be used, like ext + :param allow_unsafe_options: Allow unsafe options to be used, like --upload-pack :return: The newly created submodule instance :note: works atomically, such that no change will be done if the repository update fails for instance""" @@ -581,6 +585,8 @@ class Submodule(IndexObject, TraversableIterableObj): as its value. :param clone_multi_options: list of Clone options. Please see ``git.repo.base.Repo.clone`` for details. Only take effect with `init` option. + :param allow_unsafe_protocols: Allow unsafe protocols to be used, like ext + :param allow_unsafe_options: Allow unsafe options to be used, like --upload-pack :note: does nothing in bare repositories :note: method is definitely not atomic if recurisve is True :return: self""" |