Title: "examples/add-and-commit.js" throw "Error: Invalid path: xxx" on windows · Issue #1339 · nodegit/nodegit · GitHub
Open Graph Title: "examples/add-and-commit.js" throw "Error: Invalid path: xxx" on windows · Issue #1339 · nodegit/nodegit
X Title: "examples/add-and-commit.js" throw "Error: Invalid path: xxx" on windows · Issue #1339 · nodegit/nodegit
Description: os: windows 7 nodegit: 0.18.3 This line will throw "Error: Invalid path: xxx" index.addByPath(path.join(directoryName, fileName)) I changed it to the following, it's ok index.addByPath(directoryName + '/' + fileName)
Open Graph Description: os: windows 7 nodegit: 0.18.3 This line will throw "Error: Invalid path: xxx" index.addByPath(path.join(directoryName, fileName)) I changed it to the following, it's ok index.addByPath(directoryNam...
X Description: os: windows 7 nodegit: 0.18.3 This line will throw "Error: Invalid path: xxx" index.addByPath(path.join(directoryName, fileName)) I changed it to the following, it's ok index.addByPat...
Opengraph URL: https://github.com/nodegit/nodegit/issues/1339
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"\"examples/add-and-commit.js\" throw \"Error: Invalid path: xxx\" on windows","articleBody":"os: windows 7\r\nnodegit: 0.18.3\r\n\r\nThis line will throw \"Error: Invalid path: xxx\"\r\n\u003e index.addByPath(path.join(directoryName, fileName))\r\n\r\nI changed it to the following, it's ok\r\n\u003e index.addByPath(directoryName + '/' + fileName)","author":{"url":"https://github.com/BoyBoBo","@type":"Person","name":"BoyBoBo"},"datePublished":"2017-07-28T07:11:58.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/1339/nodegit/issues/1339"}
| 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:90a291a2-ef96-5013-70b6-158f431d8ece |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C280:3A432B:4188603:5C0FFE4:6A5FAF92 |
| html-safe-nonce | a0962bb70d52a7550ae109843e9138a8092e1c342f691cce7582864181368d8d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMjgwOjNBNDMyQjo0MTg4NjAzOjVDMEZGRTQ6NkE1RkFGOTIiLCJ2aXNpdG9yX2lkIjoiNzQ0NTk5NzkwMzA2MzAwMzAyNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | aada4213d6eb41c6e0398480f63a699270559935a07ba01c6df95057fd0be5ba |
| hovercard-subject-tag | issue:246263156 |
| 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/1339/issue_layout |
| twitter:image | https://opengraph.githubassets.com/16f7a7798b765111f62adeabc347195efdf42b37b2b41a63f8579e2f5a2b1e7e/nodegit/nodegit/issues/1339 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/16f7a7798b765111f62adeabc347195efdf42b37b2b41a63f8579e2f5a2b1e7e/nodegit/nodegit/issues/1339 |
| og:image:alt | os: windows 7 nodegit: 0.18.3 This line will throw "Error: Invalid path: xxx" index.addByPath(path.join(directoryName, fileName)) I changed it to the following, it's ok index.addByPath(directoryNam... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | BoyBoBo |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1ec7085bd7214c509393537f93bc21c48856549e31538b70bdb3cc4df7eb5f70 |
| 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 | b0ff0ab699186747983f122c82d4ebc71a1c22b4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width