Recreate repository if the same project is added after being removed

:pear:ed with @nathansobo.
This commit is contained in:
Antonio Scandurra
2016-06-20 17:06:50 +02:00
parent c6f9d1d222
commit 95932081b2
2 changed files with 19 additions and 0 deletions

View File

@@ -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