Only create repo from setPath

This commit is contained in:
Kevin Sawicki
2013-01-04 15:46:12 -08:00
parent cde4a567e7
commit e0b1570795

View File

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