protected function getGitRepositoryFor($path)
    {
        $git = new GitRepository($this->determineGitRoot($path));
        if ($this->output->getVerbosity() >= OutputInterface::VERBOSITY_DEBUG) {
            $git->getConfig()->setLogger(
                new ConsoleLogger($this->output)
            );
        }

        return $git;
    }
protected function getGitRepositoryFor($path)
    {
        $git = new GitRepository($this->determineGitRoot($path));
        if ($this->output->getVerbosity() >= OutputInterface::VERBOSITY_DEBUG) {
            $git->getConfig()->setLogger(
                new ConsoleLogger($this->output)
            );
        }

        return $git;
    }
protected function getGitRepositoryFor ( $ path ) { $ git = new GitRepository ( $ this -> determineGitRoot ( $ path ) ) ; if ( $ this -> output -> getVerbosity ( ) >= OutputInterface :: VERBOSITY_DEBUG ) { $ git -> getConfig ( ) -> setLogger ( new ConsoleLogger ( $ this -> output ) ) ; } return $ git ; }
Create a git repository instance.

@param string $path A path within a git repository.

@return GitRepository.
Create a git repository instance .