Skip to content

fix(ansible): strip Jinja whitespace in repo_url template

Jérôme Revillard requested to merge fix/jinja-repo-url-whitespace into main

The {% if %} block in the repo_url_with_credentials template injected a leading space in the URL when no git credentials were provided, producing ' https://...' which git rejected as invalid protocol.

Use {%- (whitespace-stripping) Jinja delimiters to prevent leading whitespace.

Merge request reports

Loading