Skip to content

Commit

Permalink
[TASK] added outputs for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
michael.sandritter committed Jul 20, 2016
1 parent 0ee2073 commit 2f5698d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Command/GitCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ protected function execute(InputInterface $input, OutputInterface $output)

if ($branch !== 'master') {
$git->checkoutBranch($branch, $path, $output);
$output->writeln('<info>'.$branch.' der ausgecheckt werden sollte</info>');
}

if ($input->getOption('commit-and-push')) {
Expand Down
1 change: 1 addition & 0 deletions src/Vcs/Driver/GitDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public function checkoutBranch($branch, $path, OutputInterface $output)
{
try {
$this->getGit()->getAdapter()->execute('checkout', ['-b', $branch ,'origin/' . $branch], $path);
$output->writeln('<info>'.$branch.' erfolgreich ausgecheckt</info>');
} catch (\Exception $e) {
if (preg_match("/A branch named .+ already exists/", $e->getMessage()) === 1) {
$output->writeln(
Expand Down

0 comments on commit 2f5698d

Please sign in to comment.