From 743250ebb65bdef0720fe9d417fff96fd9f09b13 Mon Sep 17 00:00:00 2001 From: nbm Date: Mon, 29 May 2006 16:19:54 +0000 Subject: [PATCH] For Windows, make the file no longer readonly so that it can be removed. This can happen when the file is extracted from a ZIP file, for example. --- lib/util/ktutil.inc | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) diff --git a/lib/util/ktutil.inc b/lib/util/ktutil.inc index 3b82fd1..e24979d 100644 --- a/lib/util/ktutil.inc +++ b/lib/util/ktutil.inc @@ -278,6 +278,7 @@ class KTUtil { KTUtil::deleteDirectory($sFullFilename); continue; } + chmod($sFullFilename, 0666); unlink($sFullFilename); } closedir($hPath); -- libgit2 0.21.4