mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Remove unused variable in git module. (#28464)
This commit is contained in:
parent
37736ee87e
commit
17995f0e48
1 changed files with 0 additions and 2 deletions
|
@ -1068,7 +1068,6 @@ def main():
|
|||
result.update(before=None)
|
||||
|
||||
local_mods = False
|
||||
need_fetch = True
|
||||
if (dest and not os.path.exists(gitconfig)) or (not dest and not allow_clone):
|
||||
# if there is no git configuration, do a clone operation unless:
|
||||
# * the user requested no clone (they just want info)
|
||||
|
@ -1084,7 +1083,6 @@ def main():
|
|||
module.exit_json(**result)
|
||||
# there's no git config, so clone
|
||||
clone(git_path, module, repo, dest, remote, depth, version, bare, reference, refspec, verify_commit)
|
||||
need_fetch = False
|
||||
elif not update:
|
||||
# Just return having found a repo already in the dest path
|
||||
# this does no checking that the repo is the actual repo
|
||||
|
|
Loading…
Reference in a new issue