fix: pass a branch name to getGitAuthUrl

This commit is contained in:
Pierre Vanduynslager 2020-02-12 19:49:59 -05:00
parent 8426b4203e
commit e7bede1866

View File

@ -52,7 +52,7 @@ async function run(context, plugins) {
// Verify config // Verify config
await verify(context); await verify(context);
options.repositoryUrl = await getGitAuthUrl(context); options.repositoryUrl = await getGitAuthUrl({...context, branch: {name: ciBranch}});
context.branches = await getBranches(options.repositoryUrl, ciBranch, context); context.branches = await getBranches(options.repositoryUrl, ciBranch, context);
context.branch = context.branches.find(({name}) => name === ciBranch); context.branch = context.branches.find(({name}) => name === ciBranch);