Skip to content

Example on nodegit.com homepage is invalid #211

@DrewML

Description

@DrewML

I looked through the repo for the nodegit.org homepage in an attempt to submit a PR, but it doesn't look like that content is maintained here.

/* http://www.nodegit.org/ */
// Load in the module.
var git = require('nodegit'),
  async = require('async');

// Open the repository in the current directory.
git.repo('.git', function(error, repository) {

In this example taken from the homepage, an exception would be thrown because there is no "repo" method on the git object, or it's prototype.

The correct usage should be git.Repo().

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