Template:VARDEFINE GIT: Difference between revisions
From Variscite Wiki
No edit summary |
No edit summary |
||
Line 15: | Line 15: | ||
{{#var:NAME}}_HTTP | {{#var:NAME}}_HTTP | ||
--> | --> | ||
<includeonly> | <includeonly><!-- | ||
{{#vardefine:{{{NAME}}}_GIT|{{{GIT}}}/{{{REPO}}}}} | -->{{#vardefine:{{{NAME}}}_GIT|{{{GIT}}}/{{{REPO}}}}}<!-- | ||
{{#vardefine:{{{NAME}}}_BRANCH|{{{BRANCH}}}}} | -->{{#vardefine:{{{NAME}}}_BRANCH|{{{BRANCH}}}}}<!-- | ||
{{#vardefine:{{{NAME}}}_COMMIT|{{{COMMIT}}}}} | -->{{#vardefine:{{{NAME}}}_COMMIT|{{{COMMIT}}}}}<!-- | ||
{{#vardefine:{{{NAME}}}_REPO|{{{REPO}}}}} | -->{{#vardefine:{{{NAME}}}_REPO|{{{REPO}}}}}<!-- | ||
<!-- Use GIT URL for HTTP if HTTP is not provided --> | |||
{{#if: {{{HTTP|}}} | Use GIT URL for HTTP if HTTP is not provided | ||
-->{{#if: {{{HTTP|}}} | |||
| | | | ||
{{#vardefine:{{{NAME}}}_HTTP|{{{GIT}}}/{{{REPO}}}}} | {{#vardefine:{{{NAME}}}_HTTP|{{{GIT}}}/{{{REPO}}}}} | ||
| | | | ||
{{#vardefine:{{{NAME}}}_HTTP|{{{HTTP}}}/{{{REPO}}}}} | {{#vardefine:{{{NAME}}}_HTTP|{{{HTTP}}}/{{{REPO}}}}} | ||
}} | }}</includeonly> | ||
</includeonly> |
Revision as of 21:48, 24 March 2023