mirror of
https://github.com/atom/atom.git
synced 2026-01-27 15:58:00 -05:00
Checkout head asyncly
This is the first tentative step in actually using the nodegit wrapper.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user