From 02d8ead883dfd32cb9274fafa296225bfce40462 Mon Sep 17 00:00:00 2001 From: Daniel Hengeveld Date: Thu, 22 Oct 2015 15:49:21 +0200 Subject: [PATCH] Checkout head asyncly This is the first tentative step in actually using the nodegit wrapper. --- src/text-editor.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/text-editor.coffee b/src/text-editor.coffee index 30d5694c4..786965d41 100644 --- a/src/text-editor.coffee +++ b/src/text-editor.coffee @@ -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