Title: Parsing of refspec in remote fetch configuration different from git · Issue #5058 · libgit2/libgit2 · GitHub
Open Graph Title: Parsing of refspec in remote fetch configuration different from git · Issue #5058 · libgit2/libgit2
X Title: Parsing of refspec in remote fetch configuration different from git · Issue #5058 · libgit2/libgit2
Description: Based on an issue reported in dotnet/sourcelink#256. Reproduction steps Add a configuration entry like so: [remote "origin"] url = https://github.com/somerepo.git fetch = +refs/heads/package-*:refs/remotes/origin/package-* and read remot...
Open Graph Description: Based on an issue reported in dotnet/sourcelink#256. Reproduction steps Add a configuration entry like so: [remote "origin"] url = https://github.com/somerepo.git fetch = +refs/heads/package-*:refs...
X Description: Based on an issue reported in dotnet/sourcelink#256. Reproduction steps Add a configuration entry like so: [remote "origin"] url = https://github.com/somerepo.git fetch = +refs/heads/pack...
Opengraph URL: https://github.com/libgit2/libgit2/issues/5058
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Parsing of refspec in remote fetch configuration different from git","articleBody":"Based on an issue reported in https://github.com/dotnet/sourcelink/issues/256.\r\n\r\n### Reproduction steps\r\n\r\nAdd a configuration entry like so:\r\n\r\n```\r\n[remote \"origin\"]\r\n url = https://github.com/somerepo.git\r\n fetch = +refs/heads/package-*:refs/remotes/origin/package-*\r\n```\r\n\r\nand read remotes information using libgit2 APIs.\r\n\r\nThe issue is that the fetch refspec does not end with `/*`. libgit2 is able to read the configuration if the refspec does end with `/*`.\r\n\r\n```\r\nfetch = +refs/heads/package/*:refs/remotes/origin/package/*\r\n``` \r\n\r\n### Expected behavior\r\n\r\nSucceeds.\r\n\r\n### Actual behavior\r\n\r\n```\r\n'+refs/heads/package-*:refs/remotes/origin/package-*' is not a valid refspec.\r\n```\r\n\r\n### Version of libgit2 (release number or SHA1)\r\n\r\nlibgit2-a904fc6\r\n\r\n### Operating system(s) tested\r\n\r\nWindows.","author":{"url":"https://github.com/tmat","@type":"Person","name":"tmat"},"datePublished":"2019-04-22T18:28:37.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/5058/libgit2/issues/5058"}
| 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:0318511e-be7b-08db-443d-c8d04fa07c6b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9CAC:33615A:6CF59C9:95C19CC:6A5EA836 |
| html-safe-nonce | e9aa7659856f525fe5974c040010477d3a35f2940b2ad803700dcd32f64a75c5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Q0FDOjMzNjE1QTo2Q0Y1OUM5Ojk1QzE5Q0M6NkE1RUE4MzYiLCJ2aXNpdG9yX2lkIjoiMzU0NzI2MTk4NjAyNjcyNzQ3OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 42e87017a03821dee34e0707fbd468d7ea9510d0559ac7c0e535836bea6a1770 |
| hovercard-subject-tag | issue:435833321 |
| 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/5058/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4834bdbec75edb2bd29d5d62a8792d49619457d57dd449a8ae189cd8a1b0b72d/libgit2/libgit2/issues/5058 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4834bdbec75edb2bd29d5d62a8792d49619457d57dd449a8ae189cd8a1b0b72d/libgit2/libgit2/issues/5058 |
| og:image:alt | Based on an issue reported in dotnet/sourcelink#256. Reproduction steps Add a configuration entry like so: [remote "origin"] url = https://github.com/somerepo.git fetch = +refs/heads/package-*:refs... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tmat |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7c7e31acb6a895494e518b880f5ccf39604f7fa9a8f2f3c64145efc3b776256d |
| 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 | 2d2ac9bdd71d5f53f2b731c9330677e38624e301 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width