Conditions | 3 |
Paths | 3 |
Total Lines | 20 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
34 | public function handle() |
||
35 | { |
||
36 | $branch = $this->argument('branch'); |
||
37 | $remote = $this->option('remote'); |
||
38 | |||
39 | $this->executeShell('git status'); |
||
40 | |||
41 | if (! $this->confirmToProceed("Will merge $remote/$branch to the current branch", true)) { |
||
42 | return; |
||
43 | } |
||
44 | |||
45 | $commands = [ |
||
46 | "git fetch $remote --no-tags -v", |
||
47 | "git merge $remote/$branch", |
||
48 | ]; |
||
49 | |||
50 | foreach ($commands as $cmd) { |
||
51 | $this->executeShell($cmd); |
||
52 | } |
||
53 | } |
||
54 | |||
68 |