Skip to content

unable to resolve symbolic references #262

Closed

Description

@chpio

hi,

im trying to get the commit at my current HEAD:

return repo.getReference('HEAD').then(function(ref) {
  return repo.getCommit(ref.target());
});

but im getting an error:

TypeError: Object object has no method 'resolve'
    at node_modules/nodegit/lib/repository.js:68:24

nodegit version: current master (e9fa6f1)

Activity

  1. changed the title [-]unable to resolve synbolic reference[/-] [+]unable to resolve symbolic references[/+] on Nov 6, 2014
  2. maxkorp commented on Nov 10, 2014

    @maxkorp
    Collaborator

    Hi, a pretty large changeset has dropped on master since then, can you try again and let us know if this is still an issue?

  3. chpio commented on Nov 10, 2014

    @chpio
    Author

    it's working now, thank you

  4. Athaphian commented on Dec 4, 2014

    @Athaphian

    When I do this in version 0.2.3:

    repo.getReference('HEAD').then(function() {
      console.log('success');
    }, function() {
      console.log('error');
    });

    I do not see 'success' nor 'error'. It just doesn't do anything. If it fails, I would expect to see 'error'..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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