Check for duplicate repo within parent list (#1905)

This commit is contained in:
Shati Patel
2022-12-22 14:01:11 +00:00
committed by GitHub
parent 46a54a623a
commit 9e1da8f142
2 changed files with 2 additions and 2 deletions

View File

@@ -206,7 +206,7 @@ export class DbConfigStore extends DisposableObject {
public doesRemoteOwnerExist(owner: string): boolean {
if (!this.config) {
throw Error(
"Cannot check remote onwer existence if config is not loaded",
"Cannot check remote owner existence if config is not loaded",
);
}

View File

@@ -145,7 +145,7 @@ export class DbPanel extends DisposableObject {
return;
}
if (this.dbManager.doesRemoteRepoExist(nwo)) {
if (this.dbManager.doesRemoteRepoExist(nwo, parentList)) {
void showAndLogErrorMessage(`The repository '${nwo}' already exists`);
return;
}