MTrack/SCM/Git/Repo.php
authorAlan Knowles <alan@akbkhome.com>
Mon, 7 Mar 2011 11:06:18 +0000 (19:06 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 7 Mar 2011 11:06:18 +0000 (19:06 +0800)
MTrack/SCM/Git/Repo.php

index 4866549..d0537be 100644 (file)
@@ -15,17 +15,17 @@ class MTrack_SCM_Git_Repo extends MTrack_Repo
     );
   }
 
-  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();