openstack-ansible-openstack.../templates/gitconfig.j2
Dmitriy Rabotyagov 6bbbbe2326 Ensure git safe directory is templated properly
We're missing `=` in gitconfig template. That template is being used
only when `git` is missing from the image template, which is the reason
why it slipped attention.

Change-Id: I602cb8b603306241e601cffc2324cb618a1dc792
(cherry picked from commit 92dd758f04)
2024-07-10 18:56:33 +00:00

10 lines
314 B
Django/Jinja

[http "https://opendev.org/"]
userAgent = git/unknown (osa/{{ lookup('env', 'OSA_VERSION') }}/{{ component | default('undefined') }})
{% if openstack_hosts_git_safe_directories is defined %}
[safe]
{% for dir in openstack_hosts_git_safe_directories %}
directory = {{ dir }}
{% endfor %}
{% endif %}