mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Only create repo from setPath
This commit is contained in:
@@ -23,7 +23,6 @@ class Project
|
||||
@setPath(path)
|
||||
@editSessions = []
|
||||
@buffers = []
|
||||
@repo = new Git(path)
|
||||
|
||||
destroy: ->
|
||||
editSession.destroy() for editSession in @getEditSessions()
|
||||
@@ -40,6 +39,7 @@ class Project
|
||||
@repo = new Git(path)
|
||||
else
|
||||
@rootDirectory = null
|
||||
@repo = null
|
||||
|
||||
@trigger "path-changed"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user