1
0
mirror of synced 2025-11-08 12:57:47 +00:00

test(integration): clone master branch if integration tests run on detached HEAD

This commit is contained in:
Jason Dreyzehner
2018-03-15 22:01:27 -04:00
parent a92af582c8
commit 49197071cd

View File

@@ -39,7 +39,10 @@ const branch = execa.sync('git', [
'--abbrev-ref',
'HEAD'
]).stdout;
const repoInfo = { repo: process.cwd(), branch };
const repoInfo = {
branch: branch === 'HEAD' ? 'master' : branch,
repo: process.cwd()
};
const buildDir = join(process.cwd(), 'build');
const env = {
TYPESCRIPT_STARTER_REPO_BRANCH: repoInfo.branch,