Template:GIT FETCH: Difference between revisions

From Variscite Wiki
(Undo revision 22256 by Nate (talk))
Tag: Undo
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#tag:pre|{{#if: {{{WORKDIR|}}} |&nbsp;
<includeonly>{{#tag:pre|{{#if: {{{WORKDIR|}}} |
$ 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|}}} |
$ cd {{#var:{{{NAME}}}_REPO}}
$ cd {{#var:{{{NAME}}}_REPO}} && \
$ git checkout {{#var:{{{NAME}}}_COMMIT}}
  git checkout {{#var:{{{NAME}}}_COMMIT}} && \
  cd ../
}}{{#if: {{{USE_BRANCH|}}} |
$ cd {{#var:{{{NAME}}}_REPO}} && \
  git checkout {{#var:{{{NAME}}}_BRANCH}} && \
  cd ../
}}}}</includeonly>
}}}}</includeonly>

Latest revision as of 21:08, 8 April 2024