From 95d9d102b90deb4e957a750a035179d9899cf835 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 6 Sep 2011 17:58:18 +0800 Subject: [PATCH] MTrack/SCM/WorkingCopy.php --- MTrack/SCM/WorkingCopy.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/MTrack/SCM/WorkingCopy.php b/MTrack/SCM/WorkingCopy.php index 47e71826..a9f8a9eb 100644 --- a/MTrack/SCM/WorkingCopy.php +++ b/MTrack/SCM/WorkingCopy.php @@ -45,7 +45,10 @@ abstract class MTrack_SCM_WorkingCopy { require_once 'System.php'; System::rm('-rf', $tn); } - + clearstatcache(); + if (file_exists($tn)) { + die("OOPS"); + } return $tn; $tn = tempnam(ini_get('session.save_path'),'mtrackworkingdir'); -- 2.39.2