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:68894fa2-eb34-5dbc-39dd-4455f034263f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E518:1F2D8B:4875020:632B535:6A5E1AAF |
| html-safe-nonce | a7478ef2844396739f03d625264645dd24eeaacf717071dc083a11cf240090db |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNTE4OjFGMkQ4Qjo0ODc1MDIwOjYzMkI1MzU6NkE1RTFBQUYiLCJ2aXNpdG9yX2lkIjoiNDEwNTA4ODgzMzczNzg1NzcxMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9f56a1ca89047664743fc9551a029c736d619053ce4fbe34d23d403f2fa0a788 |
| 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 | 7a60e060dad2c24f72179d36247204b454da37845d1728020cd42046a433f87f |
| 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 | 0ae7f3ea7b1bb2f1f4623bb093bbf54cee05d830 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width