mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
A lil more efficient .getReferenceTarget.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user