Title: docs are wrong about cloneOpts.remoteCallback · Issue #35 · nodegit/nodegit.github.com · GitHub
Open Graph Title: docs are wrong about cloneOpts.remoteCallback · Issue #35 · nodegit/nodegit.github.com
X Title: docs are wrong about cloneOpts.remoteCallback · Issue #35 · nodegit/nodegit.github.com
Description: referring to http://www.nodegit.org/guides/cloning/gh-two-factor/ The docs tell me that I should use the following options object for cloning with oauth. cloneOptions.remoteCallbacks = { certificateCheck: function() { return 1; }, creden...
Open Graph Description: referring to http://www.nodegit.org/guides/cloning/gh-two-factor/ The docs tell me that I should use the following options object for cloning with oauth. cloneOptions.remoteCallbacks = { certificat...
X Description: referring to http://www.nodegit.org/guides/cloning/gh-two-factor/ The docs tell me that I should use the following options object for cloning with oauth. cloneOptions.remoteCallbacks = { certificat...
Opengraph URL: https://github.com/nodegit/nodegit.github.com/issues/35
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"docs are wrong about cloneOpts.remoteCallback","articleBody":"referring to http://www.nodegit.org/guides/cloning/gh-two-factor/\nThe docs tell me that I should use the following options object for cloning with oauth.\n\n```\ncloneOptions.remoteCallbacks = {\n certificateCheck: function() { return 1; },\n credentials: function() {\n return NodeGit.Cred.userpassPlaintextNew(GITHUB_TOKEN, \"x-oauth-basic\");\n }\n};\n```\n\nHowever that doesn't work and isn't what is in the tests.\nI ended up using something like \n\n```\nvar cloneOptions = {\n fetchOpts: {\n callbacks: {\n certificateCheck: function() { return 1; },\n credentials: function() {\n console.log(token);\n return nodegit.Cred.userpassPlaintextNew(token, 'x-oauth-basic');\n }\n }\n }\n };\n```\n","author":{"url":"https://github.com/calebTomlinson","@type":"Person","name":"calebTomlinson"},"datePublished":"2015-12-01T21:56:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/35/nodegit.github.com/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:92830721-fb11-7ac4-391a-bec4da93b2e0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D572:28493E:5EAAEF:851F9A:6970AC0A |
| html-safe-nonce | 794eb33c55ed883774febb9f1365d5c3095f2d77989628ab7b25c7bccdc61e66 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTcyOjI4NDkzRTo1RUFBRUY6ODUxRjlBOjY5NzBBQzBBIiwidmlzaXRvcl9pZCI6IjkyMDUyNDk3MDMyOTExNjk4MDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f695f4008c6051d468d620c3ee64e6e6ac91aa017cb9510c358534ccc2d6ef89 |
| hovercard-subject-tag | issue:119817006 |
| 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.github.com/35/issue_layout |
| twitter:image | https://opengraph.githubassets.com/45c62e532cc6452de98c321be61622bcd695e994909f83c1073667a818ef6030/nodegit/nodegit.github.com/issues/35 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/45c62e532cc6452de98c321be61622bcd695e994909f83c1073667a818ef6030/nodegit/nodegit.github.com/issues/35 |
| og:image:alt | referring to http://www.nodegit.org/guides/cloning/gh-two-factor/ The docs tell me that I should use the following options object for cloning with oauth. cloneOptions.remoteCallbacks = { certificat... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | calebTomlinson |
| hostname | github.com |
| expected-hostname | github.com |
| None | 8e0be80373b724b033cdf8a7b1f78bf5fb6a5d7a2182a9a403aa30894606e390 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodegit/nodegit.github.com git https://github.com/nodegit/nodegit.github.com.git |
| octolytics-dimension-user_id | 657068 |
| octolytics-dimension-user_login | nodegit |
| octolytics-dimension-repository_id | 1462352 |
| octolytics-dimension-repository_nwo | nodegit/nodegit.github.com |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1462352 |
| octolytics-dimension-repository_network_root_nwo | nodegit/nodegit.github.com |
| 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 | b8714db0002cf78dc2d2566571807e404d6cb817 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width