4 class Repository_ConnectionInfo
10 public function __construct(Repository $repo)
13 $this->arConfig = parse_ini_file($this->repo->gitDir . '/config', true);
16 public function isFork()
18 return $this->getOrigin() !== null;
22 public function getOrigin()
24 return $this->getRemote('origin');
28 * @return Repository_Remote|null NULL if the remote does not exist, array
29 * with repository information otherwise
31 public function getRemote($name)
33 if (!isset($this->arConfig['remote ' . $name])) {
36 return new Repository_Remote($name, $this->arConfig['remote ' . $name]);