Skip to content

Commit

Permalink
fix: pass a branch name to getGitAuthUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
pvdlg committed Feb 13, 2020
1 parent 8426b42 commit e7bede1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -52,7 +52,7 @@ async function run(context, plugins) {
// Verify config
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.branch = context.branches.find(({name}) => name === ciBranch);

Expand Down

0 comments on commit e7bede1

Please sign in to comment.