Title: nodegit doesn't return control to the calling application · Issue #497 · nodegit/nodegit · GitHub
Open Graph Title: nodegit doesn't return control to the calling application · Issue #497 · nodegit/nodegit
X Title: nodegit doesn't return control to the calling application · Issue #497 · nodegit/nodegit
Description: I have the following code var cloneOptions = {}; cloneOptions.remoteCallbacks = { credentials: function(url, userName) { return NodeGit.Cred.sshKeyFromAgent(userName); } }; logger.info('Cloning snapshot repo'); var getMostRecentCommit = ...
Open Graph Description: I have the following code var cloneOptions = {}; cloneOptions.remoteCallbacks = { credentials: function(url, userName) { return NodeGit.Cred.sshKeyFromAgent(userName); } }; logger.info('Cloning sna...
X Description: I have the following code var cloneOptions = {}; cloneOptions.remoteCallbacks = { credentials: function(url, userName) { return NodeGit.Cred.sshKeyFromAgent(userName); } }; logger.info('Cloning...
Opengraph URL: https://github.com/nodegit/nodegit/issues/497
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"nodegit doesn't return control to the calling application","articleBody":"I have the following code\n\n``` javascript\nvar cloneOptions = {};\ncloneOptions.remoteCallbacks = {\n credentials: function(url, userName) {\n return NodeGit.Cred.sshKeyFromAgent(userName);\n }\n};\nlogger.info('Cloning snapshot repo');\nvar getMostRecentCommit = function(repository) {\n return repository.getBranchCommit('master');\n};\n\nvar getCommitMessage = function(commit) {\n return commit.message();\n};\nNodeGit.Clone(remoteRepo, path.join('_deployments',deployFolderName), cloneOptions )\n .then(getMostRecentCommit, function() { logger.error('error %o', arguments);})\n .then(getCommitMessage, function() { logger.error('error %o', arguments);})\n .then(function(message) {\n return logger.info(message);\n }, function() { logger.error('error %o', arguments);});\n\n```\n\nThis is largely copypasta from your site.\n\nThe `NodeGit.*` chain is working fine; the repo is being cloned and I'm getting the right commit message.\n\nHowever, my application then just sits and waits. There's no indication in the nodegit docs that I need to manually resolve the Promise or anything like in order for my application to complete.\n\nWhat am I missing here? Or is this a nodegit bug?\n","author":{"url":"https://github.com/dancrumb","@type":"Person","name":"dancrumb"},"datePublished":"2015-03-19T17:14:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":36},"url":"https://github.com/497/nodegit/issues/497"}
| 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:5bd53bae-d26d-376d-184c-2f573661fb66 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C736:29EF90:48C65A5:643FF35:6A5E21DE |
| html-safe-nonce | 31021a98b278a2a865d49cde2598bfc5db994ee7663a4acc2a57a9adadd07de5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNzM2OjI5RUY5MDo0OEM2NUE1OjY0M0ZGMzU6NkE1RTIxREUiLCJ2aXNpdG9yX2lkIjoiNDA2MTM1OTQwNDA1MTQxOTgyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | cbc1b8364bde36ae4dbd253240598853b96644d2e4a75ccffa840bb4e3d2d121 |
| hovercard-subject-tag | issue:63041378 |
| 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/497/issue_layout |
| twitter:image | https://opengraph.githubassets.com/845abc52322d7b7c433390b2705a3781a97d843cf5f1f773db0af132740c7a52/nodegit/nodegit/issues/497 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/845abc52322d7b7c433390b2705a3781a97d843cf5f1f773db0af132740c7a52/nodegit/nodegit/issues/497 |
| og:image:alt | I have the following code var cloneOptions = {}; cloneOptions.remoteCallbacks = { credentials: function(url, userName) { return NodeGit.Cred.sshKeyFromAgent(userName); } }; logger.info('Cloning sna... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dancrumb |
| hostname | github.com |
| expected-hostname | github.com |
| None | e5010f4d2748a3cbef86e1580413ff14701bd99f255268dfb4a2857c77e2cc7c |
| 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 | 7d23604c4a8ce0274b4c71bb2adbe6e1c9d5904f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width