mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix typos in git.py (#19186)
This commit is contained in:
parent
aaf13e07fe
commit
114e3cb7a4
1 changed files with 2 additions and 2 deletions
|
@ -401,7 +401,7 @@ def clone(git_path, module, repo, dest, remote, depth, version, bare,
|
|||
or refspec \
|
||||
or is_remote_branch(git_path, module, dest, repo, version) \
|
||||
or is_remote_tag(git_path, module, dest, repo, version):
|
||||
# only use depth if the remote opject is branch or tag (i.e. fetchable)
|
||||
# only use depth if the remote object is branch or tag (i.e. fetchable)
|
||||
cmd.extend([ '--depth', str(depth) ])
|
||||
if reference:
|
||||
cmd.extend([ '--reference', str(reference) ])
|
||||
|
@ -902,7 +902,7 @@ def main():
|
|||
os.umask(umask)
|
||||
|
||||
# Certain features such as depth require a file:/// protocol for path based urls
|
||||
# so force a protocal here ...
|
||||
# so force a protocol here ...
|
||||
if repo.startswith('/'):
|
||||
repo = 'file://' + repo
|
||||
|
||||
|
|
Loading…
Reference in a new issue