bug: filepath can be returned as undefined from git-url-parse let's default to empty

This commit is contained in:
blam
2021-02-11 20:09:24 +01:00
parent 1b38e38094
commit c1164fb6a8
@@ -43,7 +43,7 @@ export class BitbucketPreparer implements PreparerBase {
const targetPath = path.join(workspacePath, 'template');
const fullPathToTemplate = path.resolve(
checkoutPath,
parsedGitUrl.filepath,
parsedGitUrl.filepath ?? '',
);
const git = Git.fromAuth({ logger, ...this.getAuth() });