mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 05:19:39 +00:00
Replace 'master' with branch head when publishing to github (#105878)
This commit is contained in:
parent
70953ac5de
commit
1562816430
|
@ -177,8 +177,9 @@ export async function publishRepository(gitAPI: GitAPI, repository?: Repository)
|
||||||
}
|
}
|
||||||
|
|
||||||
progress.report({ message: 'Uploading files', increment: 25 });
|
progress.report({ message: 'Uploading files', increment: 25 });
|
||||||
|
const branch = await repository.getBranch('HEAD');
|
||||||
await repository.addRemote('origin', createdGithubRepository.clone_url);
|
await repository.addRemote('origin', createdGithubRepository.clone_url);
|
||||||
await repository.push('origin', 'master', true);
|
await repository.push('origin', branch.name, true);
|
||||||
|
|
||||||
return createdGithubRepository;
|
return createdGithubRepository;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue