projects
/
web.mtrack
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f34d09
)
MTrack/SCM/WorkingCopy.php
author
Alan Knowles
<alan@akbkhome.com>
Tue, 6 Sep 2011 10:13:52 +0000
(18:13 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Tue, 6 Sep 2011 10:13:52 +0000
(18:13 +0800)
MTrack/SCM/WorkingCopy.php
patch
|
blob
|
history
diff --git
a/MTrack/SCM/WorkingCopy.php
b/MTrack/SCM/WorkingCopy.php
index
df9f596
..
c5e052a
100644
(file)
--- a/
MTrack/SCM/WorkingCopy.php
+++ b/
MTrack/SCM/WorkingCopy.php
@@
-32,7
+32,7
@@
abstract class MTrack_SCM_WorkingCopy {
function __destruct()
{
if (strlen($this->dir) > 1) {
-
require_once 'System.php'
;
+
$this->rmdir($this->dir)
;
//System::rm('-r', $this->dir);
}
@@
-50,7
+50,7
@@
abstract class MTrack_SCM_WorkingCopy {
function generateTempDir()
{
- $tn = '/var/lib/php5/mtrackworkingdirlEwD96a';
+
/*
$tn = '/var/lib/php5/mtrackworkingdirlEwD96a';
if (file_exists($tn)) {
$this->rmdir($tn);
}
@@
-59,7
+59,7
@@
abstract class MTrack_SCM_WorkingCopy {
die("OOPS");
}
return $tn;
-
+ */
$tn = tempnam(ini_get('session.save_path'),'mtrackworkingdir');
unlink($tn);
return $tn;