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

Example on nodegit.com homepage is invalid #211

Copy link
Copy link
@DrewML

Description

@DrewML
Issue body actions

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().

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.