-
Notifications
You must be signed in to change notification settings - Fork 699
Closed
Description
var git = require( 'nodegit' );
var repoDir = "/work/gitroot/cpptestprj/.git";
git.repo(repoDir, function( err, repo )
{
if( err ) { throw err; }
repo.branch( 'master', function( err, branch )
{
if( err ) { throw err;
}
branch.tree().walk().on('entry', function( idx, entry )
{
console.log( entry.name, entry.attributes );
});
});
});
//----------------------------
zoupeng@ubuntu:/work/www$ node gittest.js
/work/gitroot/sourcecode/webide/gittest.js:10
repo.branch( 'master', function( err, branch )
^
TypeError: Object # has no method 'branch'
at /work/gitroot/sourcecode/webide/gittest.js:10:9
need for help!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels