projects
/
web.mtrack
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5ffaab
)
MTrack/SCMWorkingCopy.php
author
Alan Knowles
<alan@akbkhome.com>
Tue, 6 Sep 2011 08:37:31 +0000
(16:37 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Tue, 6 Sep 2011 08:37:31 +0000
(16:37 +0800)
MTrack/SCMWorkingCopy.php
patch
|
blob
|
history
diff --git
a/MTrack/SCMWorkingCopy.php
b/MTrack/SCMWorkingCopy.php
index
02f5a69
..
50ee72a
100644
(file)
--- a/
MTrack/SCMWorkingCopy.php
+++ b/
MTrack/SCMWorkingCopy.php
@@
-33,12
+33,15
@@
abstract class MTrackSCMWorkingCopy {
function __destruct()
{
if (strlen($this->dir) > 1) {
- require_once 'System.php'
+ require_once 'System.php'
;
System::rmdir($this->dir, '-r');
}
}
function generateTempDir()
{
+ $tn = tempnam(ini_get('session.save_path'),'mtrackworkingdir');
+ unlink($tn);
+ return $tn;