mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Recreate repository if the same project is added after being removed
:pear:ed with @nathansobo.
This commit is contained in:
@@ -129,6 +129,7 @@ class Project extends Model
|
||||
# registered in the future that could supply a Repository for the
|
||||
# directory.
|
||||
@repositoryPromisesByPath.delete(pathForDirectory) unless repo?
|
||||
repo?.onDidDestroy?(=> @repositoryPromisesByPath.delete(pathForDirectory))
|
||||
repo
|
||||
@repositoryPromisesByPath.set(pathForDirectory, promise)
|
||||
promise
|
||||
|
||||
Reference in New Issue
Block a user