/** * GitRepository constructor. * * @param Git $git * @param \Shell\Output\ProcessOutputInterface $output */ public function __construct(Git $git, $output = null) { $this->git = $git; $output = is_null($output) ? $git->getOutputHandler() : $output; $this->output = $output; $this->git->setOutputHandler($output); $this->processGitConfig(); }