Skip to content

Commit 9e1da8f

Browse files
authored
Check for duplicate repo within parent list (#1905)
1 parent 46a54a6 commit 9e1da8f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

extensions/ql-vscode/src/databases/config/db-config-store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ export class DbConfigStore extends DisposableObject {
206206
public doesRemoteOwnerExist(owner: string): boolean {
207207
if (!this.config) {
208208
throw Error(
209-
"Cannot check remote onwer existence if config is not loaded",
209+
"Cannot check remote owner existence if config is not loaded",
210210
);
211211
}
212212

extensions/ql-vscode/src/databases/ui/db-panel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export class DbPanel extends DisposableObject {
145145
return;
146146
}
147147

148-
if (this.dbManager.doesRemoteRepoExist(nwo)) {
148+
if (this.dbManager.doesRemoteRepoExist(nwo, parentList)) {
149149
void showAndLogErrorMessage(`The repository '${nwo}' already exists`);
150150
return;
151151
}

0 commit comments

Comments
 (0)