bug: need to actually use the tmpDirectory for checkout not the end location

This commit is contained in:
blam
2020-12-21 16:31:50 +01:00
parent ff0f7f89a2
commit ab82709595
@@ -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;