Title: git_repository_init_ext doesn't return when non-existent path contains subdirectory · Issue #5013 · libgit2/libgit2 · GitHub
Open Graph Title: git_repository_init_ext doesn't return when non-existent path contains subdirectory · Issue #5013 · libgit2/libgit2
X Title: git_repository_init_ext doesn't return when non-existent path contains subdirectory · Issue #5013 · libgit2/libgit2
Description: Originally reported in libgit2/libgit2sharp#1664, it appears that git_repository_init_ext never returns if the path passed in via repo_path contain a subdirectory. For example, passing in c:\foo when it doesn't exist works fine. Passing ...
Open Graph Description: Originally reported in libgit2/libgit2sharp#1664, it appears that git_repository_init_ext never returns if the path passed in via repo_path contain a subdirectory. For example, passing in c:\foo wh...
X Description: Originally reported in libgit2/libgit2sharp#1664, it appears that git_repository_init_ext never returns if the path passed in via repo_path contain a subdirectory. For example, passing in c:\foo wh...
Opengraph URL: https://github.com/libgit2/libgit2/issues/5013
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"git_repository_init_ext doesn't return when non-existent path contains subdirectory","articleBody":"Originally reported in https://github.com/libgit2/libgit2sharp/issues/1664, it appears that `git_repository_init_ext` never returns if the path passed in via `repo_path` contain a subdirectory.\r\n\r\nFor example, passing in `c:\\foo` when it doesn't exist works fine. Passing in `c:\\foo\\foo` when `c:\\foo` doesn't exist causes it to never return.\r\n\r\nFor drives that don't exist, `x:\\foo` returns the appropriate error. `x:\\foo\\foo` never returns.\r\n\r\n### Reproduction steps\r\nHere's how it's being called from LibGit2Sharp: \r\nhttps://github.com/libgit2/libgit2sharp/blob/72a5be4860779e5d2fd6d2900d3dcc119588fbc9/LibGit2Sharp/Core/Proxy.cs#L2471-L2484\r\n### Expected behavior\r\n`git_repository_init_ext` should return with appropriate error code.\r\n### Actual behavior\r\n`git_repository_init_ext` never returns\r\n\r\n### Version of libgit2 (release number or SHA1)\r\n572e4d8c1f1d42feac1c770f0cddf6fda6c4eca0\r\n\r\n### Operating system(s) tested\r\nWin10","author":{"url":"https://github.com/bording","@type":"Person","name":"bording"},"datePublished":"2019-03-08T22:20:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/5013/libgit2/issues/5013"}
| 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:31b20f1b-0aa2-ee70-2cb5-740bc5b95218 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 88CE:A0835:68027C2:8A3FCB2:6A5DE4D4 |
| html-safe-nonce | 85024d97628b41f72a7a15e26fab43c870d06940bc212b80b6dbda96ebf8cbba |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OENFOkEwODM1OjY4MDI3QzI6OEEzRkNCMjo2QTVERTRENCIsInZpc2l0b3JfaWQiOiI3NDAwNDg5NDAwMjU3MDc4NDg1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 1fcb5d6fc7a9df6303c013a4eef141a7329989ee97b6a2def8030f759ff4f06c |
| hovercard-subject-tag | issue:418980262 |
| 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/libgit2/libgit2/5013/issue_layout |
| twitter:image | https://opengraph.githubassets.com/aff657b69f8d99f471616c97c68ff4d64736f1b176ab848cbbacf083334e0975/libgit2/libgit2/issues/5013 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/aff657b69f8d99f471616c97c68ff4d64736f1b176ab848cbbacf083334e0975/libgit2/libgit2/issues/5013 |
| og:image:alt | Originally reported in libgit2/libgit2sharp#1664, it appears that git_repository_init_ext never returns if the path passed in via repo_path contain a subdirectory. For example, passing in c:\foo wh... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bording |
| hostname | github.com |
| expected-hostname | github.com |
| None | f068985268f2a1e272fe40dd37a3352a16d337d57ec570e56da6c2346e179f59 |
| turbo-cache-control | no-preview |
| go-import | github.com/libgit2/libgit2 git https://github.com/libgit2/libgit2.git |
| octolytics-dimension-user_id | 394745 |
| octolytics-dimension-user_login | libgit2 |
| octolytics-dimension-repository_id | 901662 |
| octolytics-dimension-repository_nwo | libgit2/libgit2 |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 901662 |
| octolytics-dimension-repository_network_root_nwo | libgit2/libgit2 |
| 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 | e36408244bcd0ded36f1cfba5db8e97f99c2117e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width