Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
43 | protected function initRepo($repoPath) |
||
44 | { |
||
45 | $command = "git init $repoPath"; |
||
46 | $this->info("Run \"$command\"."); |
||
47 | |||
48 | $output = []; |
||
49 | exec($command, $output, $returnStatusCode); |
||
50 | |||
51 | if ($returnStatusCode !== 0) { |
||
52 | throw RuntimeException::commandExecutionFailed( |
||
53 | $command, $returnStatusCode |
||
54 | ); |
||
55 | } |
||
56 | |||
57 | $this->info("\"$command\" was successfully ran."); |
||
58 | } |
||
60 |