mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
with depth only fetch actual version
* don't use refs/heads/branchname for branches * for tags it's needed thou * fixes #3456
This commit is contained in:
parent
54e62c2022
commit
8e5e5108d1
1 changed files with 1 additions and 1 deletions
|
@ -522,7 +522,7 @@ def fetch(git_path, module, repo, dest, version, remote, depth, bare, refspec):
|
|||
elif version == 'HEAD':
|
||||
refspecs.append('HEAD')
|
||||
elif is_remote_branch(git_path, module, dest, repo, version):
|
||||
refspecs.append('+refs/heads/'+version+':refs/heads/'+version)
|
||||
refspecs.append(version)
|
||||
elif is_remote_tag(git_path, module, dest, repo, version):
|
||||
refspecs.append('+refs/tags/'+version+':refs/tags/'+version)
|
||||
if refspecs:
|
||||
|
|
Loading…
Reference in a new issue