* @return Repository Instance of Repository
*/
public function createRepository($path, $bare = null)
{
if (file_exists($path . '/.git/HEAD') && !file_exists($path . '/HEAD')) {
throw new \RuntimeException('A GIT repository already exists at ' . $path);
}
$repository = new Repository($path, $this);
return $repository->create($bare);
}
public function run($repository, $command)
{
if (version_compare($this->getVersion(), '1.7.2', '>=')) {
$command = '-c "color.ui"=false ' . $command;
}
$command = $this->getPath() . ' ' . $command;
// echo $command;