Check for duplicate repo within parent list (#1905)
This commit is contained in:
@@ -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",
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user