Title: segfautlt in git_worktree_lookup on bare repos · Issue #4822 · libgit2/libgit2 · GitHub
Open Graph Title: segfautlt in git_worktree_lookup on bare repos · Issue #4822 · libgit2/libgit2
X Title: segfautlt in git_worktree_lookup on bare repos · Issue #4822 · libgit2/libgit2
Description: From libgit2/pygit2#814 we hit a segfault when looking up worktrees on bare repos, even if a worktree has been checked out in another directory. Reproduction steps Running using pygit2 bindings... $ git init --bare bare $ git --git-dir=b...
Open Graph Description: From libgit2/pygit2#814 we hit a segfault when looking up worktrees on bare repos, even if a worktree has been checked out in another directory. Reproduction steps Running using pygit2 bindings... ...
X Description: From libgit2/pygit2#814 we hit a segfault when looking up worktrees on bare repos, even if a worktree has been checked out in another directory. Reproduction steps Running using pygit2 bindings... ...
Opengraph URL: https://github.com/libgit2/libgit2/issues/4822
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"segfautlt in git_worktree_lookup on bare repos","articleBody":"From libgit2/pygit2#814 we hit a segfault when looking up worktrees on bare repos, even if a worktree has been checked out in another directory.\r\n\r\n### Reproduction steps\r\nRunning using pygit2 bindings...\r\n```\r\n$ git init --bare bare\r\n$ git --git-dir=bare update-ref refs/heads/develop `echo first | git --git-dir=bare commit-tree 4b825dc642cb6eb9a060e54bf8d69288fbee4904`\r\n$ git --git-dir=bare worktree add versions/develop develop\r\n$ python -c \"import pygit2; pygit2.Repository('bare').lookup_worktree('develop')\"\r\nSegmentation fault (core dumped)\r\n```\r\n### Version of libgit2\r\n0.27.1\r\n\r\n### Operating system(s) tested\r\nlinux","author":{"url":"https://github.com/Richard-Mathie","@type":"Person","name":"Richard-Mathie"},"datePublished":"2018-10-01T10:57:28.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/4822/libgit2/issues/4822"}
| 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:45a90f1c-0809-30b7-3ece-b4e2fb049955 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A6FC:B1D4C:69105AC:8A6F47C:6A5DD609 |
| html-safe-nonce | 73ba306f004546b255009a92e6ccaa61e0f2f059af5ca2fe734674b3d57cbc69 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNkZDOkIxRDRDOjY5MTA1QUM6OEE2RjQ3Qzo2QTVERDYwOSIsInZpc2l0b3JfaWQiOiIzNDk3Njk3OTc3NTMxNDg3NzUzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 200539ed9f599018ce129f2cceb6be6e3a98862785d4595344f3e988f989488e |
| hovercard-subject-tag | issue:365408659 |
| 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/4822/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9afb141c4485c21e20c815e8173d53b0492d9c78db17d90090913c9858fdeb13/libgit2/libgit2/issues/4822 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9afb141c4485c21e20c815e8173d53b0492d9c78db17d90090913c9858fdeb13/libgit2/libgit2/issues/4822 |
| og:image:alt | From libgit2/pygit2#814 we hit a segfault when looking up worktrees on bare repos, even if a worktree has been checked out in another directory. Reproduction steps Running using pygit2 bindings... ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Richard-Mathie |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| 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 | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width