Finish the docstring for git.cloned state

This commit is contained in:
Erik Johnson 2018-06-05 12:37:22 -05:00
parent 4a8260a5e5
commit 8da6ce45dc
No known key found for this signature in database
GPG key ID: 5E5583C437808F3F

View file

@ -2704,6 +2704,35 @@ def cloned(name,
fetched. If your use case requires that you keep the clone up to
date with the remote repository, then consider using
:py:func:`git.latest <salt.states.git.latest>`.
user
User under which to run git commands. By default, commands are run by
the user under which the minion is running.
password
Windows only. Required when specifying ``user``. This parameter will be
ignored on non-Windows platforms.
identity
Path to a private key to use for ssh URLs. Works the same way as in
:py:func:`git.latest <salt.states.git.latest>`, see that state's
documentation for more information.
https_user
HTTP Basic Auth username for HTTPS (only) clones
https_pass
HTTP Basic Auth password for HTTPS (only) clones
output_encoding
Use this option to specify which encoding to use to decode the output
from any git commands which are run. This should not be needed in most
cases.
.. note::
This should only be needed if the files in the repository were
created with filenames using an encoding other than UTF-8 to handle
Unicode characters.
'''
ret = {'name': name, 'result': False, 'comment': '', 'changes': {}}