MTrack/SCM/Git/WorkingCopy.php
authorAlan Knowles <alan@akbkhome.com>
Tue, 6 Sep 2011 08:38:43 +0000 (16:38 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 6 Sep 2011 08:38:43 +0000 (16:38 +0800)
MTrack/SCM/Git/WorkingCopy.php

index 3b689f7..06b1587 100644 (file)
@@ -31,13 +31,13 @@ class MTrack_SCM_Git_WorkingCopy extends MTrackSCMWorkingCopy
             array('clone', $this->repo->repopath, $this->dir)
         );
     }
-  
-    function __destruct() {
-        if ($this->push) {
-          echo stream_get_contents($this->git('push'));
-        }
-        parent::__destruct($this->dir);
+    
+    function push()
+    {
+        return stream_get_contents($this->git('push'));
     }
+    
+    
   
     function getFile($path)
     {