From e7bede186649abb4dd19ed0e8c28c218523b8b19 Mon Sep 17 00:00:00 2001 From: Pierre Vanduynslager Date: Wed, 12 Feb 2020 19:49:59 -0500 Subject: [PATCH] fix: pass a branch name to `getGitAuthUrl` --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 65644da013..24c19b5198 100644 --- a/index.js +++ b/index.js @@ -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);