I'm trying to use nodegit to open up a git repository with the following code:
var git = require('nodegit');
git.Repo(repoPath, function(error, repository) {
if (error) throw error;
}
This gives me the following error, no matter what I assign the repoPath
variable:
git.Repo(repoPath, function(error, repository) {
^
Error: git_repository is required.
I have tried path to local folder, I have tried path to local folder, including the .git
folder, I have tried a remote repo using url. No nothing.
Can anyone help out?
I'm using
node v0.10.24
nodegit v0.1.4.
git 1.9.0.msysgit.0
win 8.1 pro 64bit