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:10dd5196-2e4f-7a54-0ad8-a1573e48e7ce |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DA46:1CEF06:1CADC15:27E1A53:6A5F3CFC |
| html-safe-nonce | e5fc33b61f6b63d09fd171cfc4b9e12477ed0a17ad63890fcac5b90789edee3e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQTQ2OjFDRUYwNjoxQ0FEQzE1OjI3RTFBNTM6NkE1RjNDRkMiLCJ2aXNpdG9yX2lkIjoiNTU4MDQyODI4OTEwMDQzMDU4OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a033e4d4b20db43ccbec67288e65c93899937d8e24661b0897c2c2c5cdbe46e6 |
| 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 | ab2497d9345a59709926b385d88458fa5932c82ec066288448eb68b34cbcbbda |
| 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 | ba0ac57287507693938b0a2de45402a22cda0785 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width