);
}
- function __construct($ar = null) {
+ function __construct($ar = null) {
parent::__construct($ar);
if ($ar !== null) {
/* transparently handle bare vs. non bare repos */
- $this->gitdir = $this->repopath;
- if (is_dir("$this->repopath/.git")) {
- $this->gitdir .= "/.git";
- }
+ $this->gitdir = $this->repopath;
+ if (is_dir("$this->repopath/.git")) {
+ $this->gitdir .= "/.git";
+ }
}
- }
+ }
function getServerURL() {
$url = parent::getServerURL();