Title: repo has no method 'branch' · Issue #35 · nodegit/nodegit · GitHub
Open Graph Title: repo has no method 'branch' · Issue #35 · nodegit/nodegit
X Title: repo has no method 'branch' · Issue #35 · nodegit/nodegit
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().wal...
Open Graph 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...
X Description: var git = require( 'nodegit' ); var repoDir = "/work/gitroot/cpptestprj/.git"; git.repo(repoDir, function( err, repo ) { if( err ) { throw err; } repo.branch( 'master', fu...
Opengraph URL: https://github.com/nodegit/nodegit/issues/35
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"repo has no method 'branch'","articleBody":"var git = require( 'nodegit' );\n\nvar repoDir = \"/work/gitroot/cpptestprj/.git\";\n\ngit.repo(repoDir, function( err, repo )\n{\n if( err ) { throw err; }\n\n```\n repo.branch( 'master', function( err, branch ) \n {\n if( err ) { throw err; \n }\n\nbranch.tree().walk().on('entry', function( idx, entry ) \n{\n console.log( entry.name, entry.attributes );\n});\n```\n\n });\n});\n\n//----------------------------\n\nzoupeng@ubuntu:/work/www$ node gittest.js \n\n/work/gitroot/sourcecode/webide/gittest.js:10\n repo.branch( 'master', function( err, branch ) \n ^\nTypeError: Object #\u003cObject\u003e has no method 'branch'\n at /work/gitroot/sourcecode/webide/gittest.js:10:9\n\nneed for help!\n","author":{"url":"https://github.com/cnzoupeng","@type":"Person","name":"cnzoupeng"},"datePublished":"2011-12-19T10:05:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/35/nodegit/issues/35"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:364ff521-ec2d-b7e7-b99e-698f399229f9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C632:32AC14:332C7F8:428838E:6A5CE6D5 |
| html-safe-nonce | 25b4c47648e06d7dfa4c4efb20411521515b1a8e5faf50ee9404deba90eabbbc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjMyOjMyQUMxNDozMzJDN0Y4OjQyODgzOEU6NkE1Q0U2RDUiLCJ2aXNpdG9yX2lkIjoiODU0NDQ5MDI2MjA4NTAzNTczMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e04cb42335ca80091c1599b1b11e310c4f26d13dcec5c6d248c624b1ad044cc0 |
| hovercard-subject-tag | issue:2598492 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodegit/nodegit/35/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d05ce190d9ccbd80c49874dd049e240911c3fd9fb780416ea87f7221f77e20ba/nodegit/nodegit/issues/35 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d05ce190d9ccbd80c49874dd049e240911c3fd9fb780416ea87f7221f77e20ba/nodegit/nodegit/issues/35 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | cnzoupeng |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| go-import | github.com/nodegit/nodegit git https://github.com/nodegit/nodegit.git |
| octolytics-dimension-user_id | 657068 |
| octolytics-dimension-user_login | nodegit |
| octolytics-dimension-repository_id | 1383170 |
| octolytics-dimension-repository_nwo | nodegit/nodegit |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1383170 |
| octolytics-dimension-repository_network_root_nwo | nodegit/nodegit |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width