projects
/
web.mtrack
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a1a5cb
)
MTrack/SCM/WorkingCopy.php
author
Alan Knowles
<alan@akbkhome.com>
Tue, 6 Sep 2011 08:52:35 +0000
(16:52 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Tue, 6 Sep 2011 08:52:35 +0000
(16:52 +0800)
MTrack/SCM/WorkingCopy.php
patch
|
blob
|
history
diff --git
a/MTrack/SCM/WorkingCopy.php
b/MTrack/SCM/WorkingCopy.php
index
c8c21d2
..
ca3bba1
100644
(file)
--- a/
MTrack/SCM/WorkingCopy.php
+++ b/
MTrack/SCM/WorkingCopy.php
@@
-33,15
+33,19
@@
abstract class MTrack_SCM_WorkingCopy {
{
if (strlen($this->dir) > 1) {
require_once 'System.php';
- echo "rmdir {$this->dir}";
-
- System::rm('-r', $this->dir);
+ //System::rm('-r', $this->dir);
}
}
function generateTempDir()
{
-
+ $tn = '/var/lib/php5/mtrackworkingdirlEwD96';
+ if (file_exists($tn)) {
+ require_once 'System.php';
+ System::rm('-r', $this->dir);
+ }
+ return $tn;
+
$tn = tempnam(ini_get('session.save_path'),'mtrackworkingdir');
unlink($tn);
return $tn;