Skip to content

Example on nodegit.com homepage is invalid #211

Closed

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

Activity

  1. jeffwilcox commented on Aug 22, 2014

    @jeffwilcox
    Contributor

    I was just wondering the same thing, had a lot of trouble getting started experimenting with nodegit as the homepage and the README.md feel out of date.

    Hopefully someone is taking a look.

  2. DrewML commented on Sep 2, 2014

    @DrewML
    Author

    Replying to my own comment(and for @jeffwilcox) it looks like PR's for the docs can be submitted to this repo: https://github.com/nodegit/nodegit.github.com/tree/redesign. I'll try and submit an update soon for the issue I reported.

  3. tbranyen commented on Oct 24, 2014

    @tbranyen
    Member

    Docs have been updated.

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