From 1e92239c49b4a50b118393d540b5fd23fe22f5f0 Mon Sep 17 00:00:00 2001
From: Carlin St Pierre <cstpierre@atlassian.com>
Date: Mon, 1 Jun 2020 15:30:24 +1000
Subject: [PATCH] fix: post-upgrade tasks see the latest changes to any files
 when running (#6396)

---
 lib/workers/branch/index.ts | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/workers/branch/index.ts b/lib/workers/branch/index.ts
index a1635edc19..b31ca149a2 100644
--- a/lib/workers/branch/index.ts
+++ b/lib/workers/branch/index.ts
@@ -1,4 +1,3 @@
-import { join } from 'path';
 import is from '@sindresorhus/is';
 import { concat } from 'lodash';
 import { DateTime } from 'luxon';
@@ -359,7 +358,7 @@ export async function processBranch(
             } else {
               contents = file.contents;
             }
-            await writeLocalFile(join(config.localDir, file.name), contents);
+            await writeLocalFile(file.name, contents);
           }
         }
 
-- 
GitLab