Skip to content

getReference passes unexpected object into callback #98

@micha149

Description

@micha149

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

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