Template:GIT FETCH: Difference between revisions

From Variscite Wiki
No edit summary
(Undo revision 22256 by Nate (talk))
Tag: Undo
Line 1: Line 1:
<includeonly>{{#if: {{{WORKDIR|}}} |
<includeonly>{{#tag:pre|{{#if: {{{WORKDIR|}}} |&nbsp;
{{#tag:pre|$ cd {{{WORKDIR}}}}}
$ cd {{{WORKDIR}}}
}}
}}
{{#tag:pre|$ 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|}}} |
{{#if: {{{USE_COMMIT|}}} |&nbsp;
{{#tag:pre|$ cd {{#var:{{{NAME}}}_REPO}}
$ cd {{#var:{{{NAME}}}_REPO}}
  $ git checkout {{#var:{{{NAME}}}_COMMIT}}}}
  $ git checkout {{#var:{{{NAME}}}_COMMIT}}
}}</includeonly>
}}}}</includeonly>

Revision as of 21:29, 24 March 2023