| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | public function runActualTask($params = []) |
||
| 37 | { |
||
| 38 | $gitRootDir = $this->mu()->getGitRootDir(); |
||
| 39 | $this->mu()->execMe( |
||
| 40 | $gitRootDir, |
||
| 41 | ' |
||
| 42 | if $(git ls-remote --heads ${REPO} ${BRANCH} | grep -q ' . "'refs/heads/" . $this->nameOfLegacyBranch . "'" . '); then |
||
| 43 | echo branch exists |
||
| 44 | else |
||
| 45 | git checkout -b ' . $this->nameOfLegacyBranch . '; |
||
| 46 | git push origin ' . $this->nameOfLegacyBranch . '; |
||
| 47 | |||
| 48 | fi', |
||
| 49 | 'create legacy branch: ' . $this->nameOfLegacyBranch . ' in ' . $gitRootDir, |
||
| 50 | false |
||
| 51 | ); |
||
| 59 |