Title: Issue · GitHub
Open Graph Title: Issue · nodegit/nodegit
X Title: Issue · nodegit/nodegit
Description: Native Node bindings to Git. Contribute to nodegit/nodegit development by creating an account on GitHub.
Open Graph Description: Native Node bindings to Git. Contribute to nodegit/nodegit development by creating an account on GitHub.
X Description: Native Node bindings to Git. Contribute to nodegit/nodegit development by creating an account on GitHub.
Opengraph URL: https://github.com/nodegit/nodegit
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 | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:8e988492-017c-654d-8148-e12e179a3097 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CE18:3709BC:17A38EB:2173A14:6A5FA9DE |
| html-safe-nonce | 758e758b5fc40e4b6962cce708ccb7a1b3d1d9ae18b8f0f000f7047edcfab98e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRTE4OjM3MDlCQzoxN0EzOEVCOjIxNzNBMTQ6NkE1RkE5REUiLCJ2aXNpdG9yX2lkIjoiMzU3NTMwNzg3MzM2MTU3MDI3MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f009f0b0c481f34fe7b7a82a5e6620fb66cc67efe17b340c29557d8c0d7112a0 |
| hovercard-subject-tag | repository:1383170 |
| 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/nodegit/nodegit/issues/497 |
| twitter:image | https://opengraph.githubassets.com/293c0de3212fe571b9ed383d48cdf68ced8b044ca122d18e7c6b47bd5193609e/nodegit/nodegit |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/293c0de3212fe571b9ed383d48cdf68ced8b044ca122d18e7c6b47bd5193609e/nodegit/nodegit |
| og:image:alt | Native Node bindings to Git. Contribute to nodegit/nodegit development by creating an account on GitHub. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9b835c054d57dfb6ce72ba8f0eb8f16f0370860631609eb10df818738c61c68d |
| turbo-cache-control | no-cache |
| 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 | 4df9bc0bde4bfd7cd95e75afdd7f103984ece3a1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width