diff --git a/src/git-repository-async.js b/src/git-repository-async.js index 432502d17..e893bb9e5 100644 --- a/src/git-repository-async.js +++ b/src/git-repository-async.js @@ -304,8 +304,8 @@ export default class GitRepositoryAsync { // given reference. getReferenceTarget (reference, _path) { return this._getRepo(_path) - .then(repo => repo.getReference(reference)) - .then(ref => ref.target().tostrS()) + .then(repo => Git.Reference.nameToId(repo, reference)) + .then(oid => oid.tostrS()) } // Reading Status