Checkout head asyncly

This is the first tentative step in actually using the nodegit wrapper.
This commit is contained in:
Daniel Hengeveld
2015-10-22 15:49:21 +02:00
parent c2520f4909
commit 02d8ead883

View File

@@ -646,7 +646,7 @@ class TextEditor extends Model
checkoutHead = =>
@project.repositoryForDirectory(new Directory(path.dirname(filePath)))
.then (repository) =>
repository?.checkoutHeadForEditor(this)
repository?.async.checkoutHeadForEditor(this)
if @config.get('editor.confirmCheckoutHeadRevision')
@applicationDelegate.confirm