Title: How to fetch blobs from remote or alternate repositories · Issue #2149 · libgit2/libgit2sharp · GitHub
Open Graph Title: How to fetch blobs from remote or alternate repositories · Issue #2149 · libgit2/libgit2sharp
X Title: How to fetch blobs from remote or alternate repositories · Issue #2149 · libgit2/libgit2sharp
Description: For CI processes we have repositories that are cloned with "--filter=blob:none". Also we have a repository cache folder that we set via ".git/objects/info/alternates". When we try to access the blob contend it fails, is there a way to do...
Open Graph Description: For CI processes we have repositories that are cloned with "--filter=blob:none". Also we have a repository cache folder that we set via ".git/objects/info/alternates". When we try to access the blo...
X Description: For CI processes we have repositories that are cloned with "--filter=blob:none". Also we have a repository cache folder that we set via ".git/objects/info/alternates". When we t...
Opengraph URL: https://github.com/libgit2/libgit2sharp/issues/2149
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"How to fetch blobs from remote or alternate repositories","articleBody":"For CI processes we have repositories that are cloned with \"--filter=blob:none\".\nAlso we have a repository cache folder that we set via \".git/objects/info/alternates\".\n\nWhen we try to access the blob contend it fails, is there a way to download the blob from the remote repository?\nFor alternates objects I can probably just copy the objects over manually but I would prefer proper lib support.\n\nWhat I'm looking for is something like https://git-scm.com/docs/partial-clone/2.49.0#_fetching_missing_objects\nManly ideas how to custom implement this or an integrated solution when using the lib.\n\n# Reproduction steps\n\nExample repo setup:\n```\ngit init $GITHUB_WORKSPACE/git --bare\ngit remote add origin git@github.com:${{ github.repository }}.git\necho \"/git-cache/${{ github.repository }}.git/objects\" >> ./objects/info/alternates\ngit fetch --no-tags --no-recurse-submodules --filter=blob:none origin ${{ env.DefaultBranch }}\n```\n\n# Actual behavior\n\nDepending on function: No valid git object identified by 'sha xxxxxx' exists in the repository.\n\n# Version of LibGit2Sharp (release number or SHA1)\n\n0.31.0\n\n# Operating system(s) tested; .NET runtime tested\nWin 11 / Debian | Net Core 8","author":{"url":"https://github.com/kammerjaeger","@type":"Person","name":"kammerjaeger"},"datePublished":"2025-05-05T23:46:56Z","url":"https://github.com/libgit2/libgit2sharp/issues/2149"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:aad2cd4e-f749-d176-8d83-cc62904eea9a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B78C:5A822:28CE5D:383794:6AFD5380 |
| html-safe-nonce | 2e740205744b0ca33258bad5959ca146fcb3a1eae69e656cab09e724aa971d22 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNzhDOjVBODIyOjI4Q0U1RDozODM3OTQ6NkFGRDUzODAiLCJ2aXNpdG9yX2lkIjoiODkwMzM0NDUwNzc3NzI3NDc1MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 85810b659295c55d185a9ad50d03d8a20a744c4ae966320e11817a265c660b32 |
| hovercard-subject-tag | issue:3041099246 |
| 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/libgit2sharp/2149/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2c1296e7dc062c98f6d4db51e7fa5f03b8393fd6a19bc1368d918ae8e1450bcf/libgit2/libgit2sharp/issues/2149 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2c1296e7dc062c98f6d4db51e7fa5f03b8393fd6a19bc1368d918ae8e1450bcf/libgit2/libgit2sharp/issues/2149 |
| og:image:alt | For CI processes we have repositories that are cloned with "--filter=blob:none". Also we have a repository cache folder that we set via ".git/objects/info/alternates". When we try to access the blo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kammerjaeger |
| hostname | github.com |
| expected-hostname | github.com |
| None | 66653c2e55a6fff2930be1bdf07ee4f8aa137e3956d056c822563be6f878755e |
| turbo-cache-control | no-preview |
| go-import | github.com/libgit2/libgit2sharp git https://github.com/libgit2/libgit2sharp.git |
| octolytics-dimension-user_id | 394745 |
| octolytics-dimension-user_login | libgit2 |
| octolytics-dimension-repository_id | 1415168 |
| octolytics-dimension-repository_nwo | libgit2/libgit2sharp |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1415168 |
| octolytics-dimension-repository_network_root_nwo | libgit2/libgit2sharp |
| 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 | b6f01f7cb9f35f8c09949773241a3d49dd04b340 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width