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

index 20248ab..5d250cd 100644 (file)
@@ -8,7 +8,11 @@ class MTrack_SCM_Git_WorkingCopy extends MTrackSCMWorkingCopy
     public $push = true;
   
     function __construct(MTrack_Repo $repo) {
-        $this->dir = mtrack_make_temp_dir();
+        $cfg = HTML_FlexyFramework::get()->MTrack;
+        if (empty($cfg['workingdir'])) {
+            throw new Exception("MTrack[workingdir] is not set")
+        }
+        $this->dir = $cfg['workingdir'];
         $this->repo = $repo;
         
         MTrackSCM::run('git', 'string',