Title: index.removeByPath stops execution · Issue #97 · nodegit/nodegit · GitHub
Open Graph Title: index.removeByPath stops execution · Issue #97 · nodegit/nodegit
X Title: index.removeByPath stops execution · Issue #97 · nodegit/nodegit
Description: trying to use removeByPath by using repo.openIndex, index.read, index.removeByPath and the scripts stops execution, no error, no logs, return code is 0. nodegit@0.1.0 node v0.10.13 OS: OSX 10.8.5 var git = require('nodegit') git.Repo.ope...
Open Graph Description: trying to use removeByPath by using repo.openIndex, index.read, index.removeByPath and the scripts stops execution, no error, no logs, return code is 0. nodegit@0.1.0 node v0.10.13 OS: OSX 10.8.5 v...
X Description: trying to use removeByPath by using repo.openIndex, index.read, index.removeByPath and the scripts stops execution, no error, no logs, return code is 0. nodegit@0.1.0 node v0.10.13 OS: OSX 10.8.5 v...
Opengraph URL: https://github.com/nodegit/nodegit/issues/97
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"index.removeByPath stops execution","articleBody":"trying to use removeByPath by using repo.openIndex, index.read, index.removeByPath and the scripts stops execution, no error, no logs, return code is 0.\n\nnodegit@0.1.0\nnode v0.10.13\nOS: OSX 10.8.5\n\n``` javascript\nvar git = require('nodegit')\n\ngit.Repo.open(repoPath, function(openError, repo) {\n if (openError) throw openError;\n repo.openIndex(function(openIndexError, index) {\n if (openIndexError) throw openIndexError;\n index.read(function(readError) {\n if (readError) throw readError;\n index.removeByPath(fileName, function(removeByPathError,r) {\n if (removeByPathError) throw removeByPathError; \n console.log('ok');\n });\n });\n });\n});\n```\n\nSteps to repro: \n- set repoPath to the path of a checked out repo\n- set fileName to the filename to delete from the repo\n\nExpectations: prints 'ok' or throws removeByPathError\nActual: process stops without error.\n","author":{"url":"https://github.com/dcolens","@type":"Person","name":"dcolens"},"datePublished":"2013-09-30T11:56:48.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/97/nodegit/issues/97"}
| 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:b7ed8237-dc7a-9705-f316-30a9cdc4093a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8FDA:269996:4D0FB11:6659BC8:6A5D9F5D |
| html-safe-nonce | fd2a41e4d37a10f13ac0e5796a197d11b2d8ec18ffb7d26eb518766305a58495 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RkRBOjI2OTk5Njo0RDBGQjExOjY2NTlCQzg6NkE1RDlGNUQiLCJ2aXNpdG9yX2lkIjoiMTg2Mzg4NjIzMzM4MDE2NzUxNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 84c8d12d2682cee15942ffe73aa7c6123dc310ee5d0719eee2d2b3bed4d240d5 |
| hovercard-subject-tag | issue:20257543 |
| 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/97/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3058198d451f42d854ad25a2a568e293bf745ca60a93192471e11e2e98c53b1b/nodegit/nodegit/issues/97 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3058198d451f42d854ad25a2a568e293bf745ca60a93192471e11e2e98c53b1b/nodegit/nodegit/issues/97 |
| og:image:alt | trying to use removeByPath by using repo.openIndex, index.read, index.removeByPath and the scripts stops execution, no error, no logs, return code is 0. nodegit@0.1.0 node v0.10.13 OS: OSX 10.8.5 v... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dcolens |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| 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 | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width