fix(core): update

This commit is contained in:
2019-08-27 16:02:04 +02:00
parent 6cc245ae7e
commit 201a5014ed
3 changed files with 189 additions and 228 deletions

View File

@ -42,6 +42,12 @@ export class GitRepo {
public async listRemotes(): Promise<string[]> {
return this.nodegitRepo.getRemotes();
}
/**
* ensures the existance of a remote within a repository
* @param remoteNameArg
* @param remoteUrlArg
*/
public async ensureRemote(remoteNameArg: string, remoteUrlArg: string): Promise<void> {
const existingUrl = await this.getUrlForRemote(remoteNameArg);
if (existingUrl === remoteUrlArg) {