mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Support --separate-git-dir option in Git module (#41712)
Make git module support --separate-git-dir option. When git version is higher than 1.7.5, use built-in --separate-git-dir option during the clone. When lower, adjust the location of git dir manually after clone to achieve the same effect.
This commit is contained in:
@@ -11,6 +11,7 @@ git_archive_extensions:
|
||||
|
||||
checkout_dir: '{{ output_dir }}/git'
|
||||
repo_dir: '{{ output_dir }}/local_repos'
|
||||
separate_git_dir: '{{ output_dir }}/sep_git_dir'
|
||||
repo_format1: 'https://github.com/jimi-c/test_role'
|
||||
repo_format2: 'git@github.com:jimi-c/test_role.git'
|
||||
repo_format3: 'ssh://git@github.com/jimi-c/test_role.git'
|
||||
|
||||
Reference in New Issue
Block a user