Replace 'master' with branch head when publishing to github (#105878)

This commit is contained in:
Nicholas Rayburn 2020-09-16 04:02:03 -05:00 committed by GitHub
parent 70953ac5de
commit 1562816430
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -177,8 +177,9 @@ export async function publishRepository(gitAPI: GitAPI, repository?: Repository)
}
progress.report({ message: 'Uploading files', increment: 25 });
const branch = await repository.getBranch('HEAD');
await repository.addRemote('origin', createdGithubRepository.clone_url);
await repository.push('origin', 'master', true);
await repository.push('origin', branch.name, true);
return createdGithubRepository;
});