fix: use authenticated URL to check if local branch is up to date

This commit is contained in:
Pierre Vanduynslager
2019-11-01 20:44:31 -04:00
parent 9eaf9552c1
commit 7a939a8970
3 changed files with 8 additions and 7 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ async function run(context, plugins) {
try {
await verifyAuth(options.repositoryUrl, options.branch, {cwd, env});
} catch (error) {
if (!(await isBranchUpToDate(options.branch, {cwd, env}))) {
if (!(await isBranchUpToDate(options.repositoryUrl, options.branch, {cwd, env}))) {
logger.log(
`The local branch ${options.branch} is behind the remote one, therefore a new version won't be published.`
);