Template:GIT FETCH: Difference between revisions
From Variscite Wiki
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 5: | Line 5: | ||
{{#if: {{{USE_COMMIT|}}} | | {{#if: {{{USE_COMMIT|}}} | | ||
$ cd {{#var:{{{NAME}}}_REPO}} && \ | $ cd {{#var:{{{NAME}}}_REPO}} && \ | ||
git checkout {{#var:{{{NAME}}}_COMMIT}} && \ | |||
cd ../ | |||
}}{{#if: {{{USE_BRANCH|}}} | | |||
$ cd {{#var:{{{NAME}}}_REPO}} && \ | |||
git checkout {{#var:{{{NAME}}}_BRANCH}} && \ | |||
cd ../ | |||
}}}}</includeonly> | }}}}</includeonly> |