From ab82709595acdeae1bfcc2ecacd7a7d203e086fb Mon Sep 17 00:00:00 2001 From: blam Date: Mon, 21 Dec 2020 16:31:50 +0100 Subject: [PATCH] bug: need to actually use the tmpDirectory for checkout not the end location --- .../scaffolder-backend/src/scaffolder/stages/prepare/github.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/scaffolder-backend/src/scaffolder/stages/prepare/github.ts b/plugins/scaffolder-backend/src/scaffolder/stages/prepare/github.ts index 761259c0c5..87612bb0fb 100644 --- a/plugins/scaffolder-backend/src/scaffolder/stages/prepare/github.ts +++ b/plugins/scaffolder-backend/src/scaffolder/stages/prepare/github.ts @@ -55,6 +55,7 @@ export class GithubPreparer implements PreparerBase { ); const checkoutLocation = path.resolve(tempDir, templateDirectory); + const git = Git.fromAuth({ username: this.token, password: 'x-oauth-basic', @@ -63,7 +64,7 @@ export class GithubPreparer implements PreparerBase { await git.clone({ url: repositoryCheckoutUrl, - dir: checkoutLocation, + dir: tempDir, }); return checkoutLocation;