From a348046a066ef6fe4c57d26ac44bbaadd2f50eb9 Mon Sep 17 00:00:00 2001 From: Rhys Arkins Date: Thu, 2 Jul 2020 19:51:18 +0200 Subject: [PATCH] fix: deleteLocalFile join --- 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 cb0e7a7814c003..d68fe20ce91e36 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 { - await fs.remove(fileName); + const localFileName = join(localDir, fileName); + await fs.remove(localFileName); } // istanbul ignore next