Template:GIT FETCH: Difference between revisions

From Variscite Wiki
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
{{{NAME}}}
{{{WORKDIR}}}
{{#var:{{{NAME}}}_GIT}}
Fetch the core-secdev-k3 Security Dev Tool:
{{#if: {{{WORKDIR|}}} |&nbsp;
{{#if: {{{WORKDIR|}}} |&nbsp;
  $ cd {{{WORKDIR}}}
  $ cd {{{WORKDIR}}}
}}
}}
  $ git clone {{#var:{{{NAME}}}_GIT}} -b {{#var:{{{NAME}}}_BRANCH}} {{#var:{{{NAME}}}_REPO}}
  $ git clone {{#var:{{{NAME}}}_GIT}} -b {{#var:{{{NAME}}}_BRANCH}} {{#var:{{{NAME}}}_REPO}}
{{#if: {{{USE_COMMIT|}}} |&nbsp;
{{#if: {{{USE_COMMIT}}} |&nbsp;
  $ cd {{#var:{{{NAME}}}_REPO}}
  $ cd {{#var:{{{NAME}}}_REPO}}
  $ git checkout {{#var:{{{NAME}}}_COMMIT}}
  $ git checkout {{#var:{{{NAME}}}_COMMIT}}
}}
}}
</includeonly>
</includeonly>

Revision as of 21:23, 24 March 2023