mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
more ::checkoutHead specs
This commit is contained in:
@@ -63,9 +63,9 @@ module.exports = class GitRepositoryAsync {
|
||||
}
|
||||
|
||||
checkoutHead (_path) {
|
||||
return this.repoPromise.then(function (repo) {
|
||||
return this.repoPromise.then((repo) => {
|
||||
var checkoutOptions = new Git.CheckoutOptions()
|
||||
checkoutOptions.paths = [_path]
|
||||
checkoutOptions.paths = [this._gitUtilsRepo.relativize(_path)]
|
||||
checkoutOptions.checkoutStrategy = Git.Checkout.STRATEGY.FORCE | Git.Checkout.STRATEGY.DISABLE_PATHSPEC_MATCH
|
||||
Git.Checkout.head(repo, checkoutOptions)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user