mirror of
https://github.com/desktop/desktop
synced 2024-08-25 03:07:41 +00:00
Don't throw when repo couldn't be added
This commit is contained in:
parent
f027f597ea
commit
1c24601d64
|
@ -785,6 +785,11 @@ export class Dispatcher {
|
|||
}
|
||||
|
||||
const addedRepositories = await this.addRepositories([path])
|
||||
|
||||
if (addedRepositories.length < 1) {
|
||||
return null
|
||||
}
|
||||
|
||||
const addedRepository = addedRepositories[0]
|
||||
await this.selectRepository(addedRepository)
|
||||
|
||||
|
|
Loading…
Reference in a new issue