From a196db464b79c2abc728c525253e1356ed228a1c Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Thu, 2 Jul 2020 20:16:48 +0200
Subject: [PATCH] fix: deleteLocalFile join (#6654)

---
 lib/util/gitfs/fs/index.ts | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/util/gitfs/fs/index.ts b/lib/util/gitfs/fs/index.ts
index cb0e7a7814..d68fe20ce9 100644
--- a/lib/util/gitfs/fs/index.ts
+++ b/lib/util/gitfs/fs/index.ts
@@ -49,7 +49,8 @@ export async function writeLocalFile(
 }
 
 export async function deleteLocalFile(fileName: string): Promise<void> {
-  await fs.remove(fileName);
+  const localFileName = join(localDir, fileName);
+  await fs.remove(localFileName);
 }
 
 // istanbul ignore next
-- 
GitLab