Template:GIT FETCH: Difference between revisions

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

Latest revision as of 21:08, 8 April 2024