Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

getReference passes unexpected object into callback #98

Copy link
Copy link
@micha149

Description

@micha149
Issue body actions

Hey.

I just followed an example from example/general.js and tried to list all references of my repository. But the reference object, which is passed to my callback, is missing the methods .isOid() and .oid()

Here's the relevant except:

repo.getReference(referenceName, function(error, reference) {
    if (error) throw error;
    if (reference.isOid()) {
        console.log("Reference:", referenceName, reference.oid());
    } else if (reference.isSymbolic()) {
        console.log("Reference:", referenceName, reference.symbolicTarget());
    }
});

I have tried this with the latest release from npm registry and also with a fresh master clone. Same issues on both versions.

My configuration:

Node.js v0.10.0
nodegit v0.1.0
Mac OSX 10.8.5

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.