Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Sep 16, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion extensions/github/src/publish.ts
Expand Up @@ -174,8 +174,9 @@ export async function publishRepository(gitAPI: GitAPI, repository?: Repository)
}

progress.report({ message: 'Uploading files', increment: 25 });
const branch = await repository.getBranch('HEAD');
joaomoreno marked this conversation as resolved.
Show resolved Hide resolved
await repository.addRemote('origin', createdGithubRepository.clone_url);
await repository.push('origin', 'master', true);
await repository.push('origin', branch.name, true);

return createdGithubRepository;
});
Expand Down