Title: support merge analysis for bare repos · Issue #5017 · libgit2/libgit2 · GitHub
Open Graph Title: support merge analysis for bare repos · Issue #5017 · libgit2/libgit2
X Title: support merge analysis for bare repos · Issue #5017 · libgit2/libgit2
Description: Reproduction steps Call git_merge_analysis() or git_merge_analysis_for_ref() on a bare repository. Expected behaviour Since we can do git_merge_trees() and other things on bare repositories, makes sense analysis should work too since it'...
Open Graph Description: Reproduction steps Call git_merge_analysis() or git_merge_analysis_for_ref() on a bare repository. Expected behaviour Since we can do git_merge_trees() and other things on bare repositories, makes ...
X Description: Reproduction steps Call git_merge_analysis() or git_merge_analysis_for_ref() on a bare repository. Expected behaviour Since we can do git_merge_trees() and other things on bare repositories, makes ...
Opengraph URL: https://github.com/libgit2/libgit2/issues/5017
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"support merge analysis for bare repos","articleBody":"### Reproduction steps\r\n\r\nCall `git_merge_analysis()` or `git_merge_analysis_for_ref()` on a bare repository.\r\n\r\n### Expected behaviour\r\n\r\nSince we can do `git_merge_trees()` and other things on bare repositories, makes sense analysis should work too since it's non-destructive. From Slack:\r\n\r\n\u003e @ethomson\r\n\u003e it doesn't seem like that's something that should need a workdir for.\r\n\u003e i suspect that some refactoring just ended up shuffling the not-bare check there.\r\n\r\n### Actual behaviour\r\n\r\nIt errors with `cannot merge. This operation is not allowed against bare repositories`. The bare repository check appears in `merge_heads()`:\r\n\r\nhttps://github.com/libgit2/libgit2/blob/2e0a304839764236654e73d38fa380b317a3fac1/src/merge.c#L3115-L3116\r\n\r\n### Version of libgit2 (release number or SHA1)\r\n\r\n0.28.1 @ 2e0a304839764236654e73d38fa380b317a3fac1\r\n\r\n### Operating system(s) tested\r\n\r\nOSX","author":{"url":"https://github.com/rcoup","@type":"Person","name":"rcoup"},"datePublished":"2019-03-13T00:49:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/5017/libgit2/issues/5017"}
| 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:91d3198c-56ad-77ad-ba67-f78067ed2ab7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C3D0:391B0E:2CEBBB:3C33FA:6A5ECDE5 |
| html-safe-nonce | 08d9f91f11c262473293c0353c2fde795286de521cfc05926f0b9f07a5382d7f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDM0QwOjM5MUIwRToyQ0VCQkI6M0MzM0ZBOjZBNUVDREU1IiwidmlzaXRvcl9pZCI6IjIwOTc5NjQwOTQyMDA5MjU2NjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 01432621db217e008a78d949419dda1f63c20f39c06c23ebcce169ea04c52d18 |
| hovercard-subject-tag | issue:420268150 |
| 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/5017/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1d0f9479836db52c689bb354b02768f60213a673544119e4d5c726ccbb1d2391/libgit2/libgit2/issues/5017 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1d0f9479836db52c689bb354b02768f60213a673544119e4d5c726ccbb1d2391/libgit2/libgit2/issues/5017 |
| og:image:alt | Reproduction steps Call git_merge_analysis() or git_merge_analysis_for_ref() on a bare repository. Expected behaviour Since we can do git_merge_trees() and other things on bare repositories, makes ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rcoup |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9bd00899c80f8b6ea4e7a96c99290af4722b0befdf9e021b19232cbd6f993660 |
| 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 | 9996307881fdf9017d864a20b3dfe5aae4dddd3e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width