<?php
-
+/***
+ *
+ * working directories?
+ *
+ * This is very dodgy..
+ * = either we have a temporary working directory created for each session/user etc..
+ *
+ * = what happens when multiple people try to access a working directory..
+ *
+ * = what happens if the same person is doing multiple things on the same workign directory..
+ *
+ *
+ *
+ *
+ */
class MTrack_SCM_Git_WorkingCopy extends MTrackSCMWorkingCopy
{
public $push = true;
function __construct(MTrack_Repo $repo) {
- $cfg = HTML_FlexyFramework::get()->MTrack;
- if (empty($cfg['workingdir'])) {
- throw new Exception("MTrack[workingdir] is not set");
- }
- $this->dir = $cfg['workingdir'] .'/working.' . $this->repo->shortname;
+
+ $this->dir = $this->generateTempDir();;
+
$this->repo = $repo;
MTrackSCM::run('git', 'string',