René's URL Explorer Experiment


Title: Regression in git_index_write_tree_to · Issue #5015 · libgit2/libgit2 · GitHub

Open Graph Title: Regression in git_index_write_tree_to · Issue #5015 · libgit2/libgit2

X Title: Regression in git_index_write_tree_to · Issue #5015 · libgit2/libgit2

Description: This is a regression, it works fine with 0.27 Found while upgrading pygit2 to v0.28, see https://travis-ci.org/libgit2/pygit2/jobs/503956525#L1044 This is the only test failure in the pygit2 test suite, it blocks release of pygit2 0.28.0...

Open Graph Description: This is a regression, it works fine with 0.27 Found while upgrading pygit2 to v0.28, see https://travis-ci.org/libgit2/pygit2/jobs/503956525#L1044 This is the only test failure in the pygit2 test s...

X Description: This is a regression, it works fine with 0.27 Found while upgrading pygit2 to v0.28, see https://travis-ci.org/libgit2/pygit2/jobs/503956525#L1044 This is the only test failure in the pygit2 test s...

Opengraph URL: https://github.com/libgit2/libgit2/issues/5015

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Regression in git_index_write_tree_to","articleBody":"This is a regression, it works fine with 0.27\r\n\r\nFound while upgrading pygit2 to v0.28, see https://travis-ci.org/libgit2/pygit2/jobs/503956525#L1044\r\nThis is the only test failure in the pygit2 test suite, it blocks release of pygit2 0.28.0\r\n\r\n### Reproduction steps\r\n\r\nPrepare the repositories:\r\n\r\n```bash\r\n$ git init src\r\nInitialized empty Git repository in [...]/src/.git/\r\n$ cat - \u003e src/hello.txt\r\nworld\r\n^D\r\n$ cd src\r\n$ git add hello.txt \r\n$ cd ..\r\n$ git init dst\r\nInitialized empty Git repository in [...]/dst/.git/\r\n```\r\n\r\nRun the following program:\r\n\r\n```c\r\n#include \u003cstdio.h\u003e\r\n#include \u003cgit2.h\u003e                                                                                                      \r\n                                                                                                                       \r\nint main()                                                                                                             \r\n{                                                                                                                      \r\n    char hex[GIT_OID_HEXSZ+1] = {0};\r\n    int err;\r\n    git_repository *src, *dst;                                                                                         \r\n    git_index *index;\r\n    git_oid id;\r\n    \r\n    git_libgit2_init();                                                                                                \r\n    \r\n    err = git_repository_open(\u0026src, \"src\");                                                                            \r\n    err = git_repository_open(\u0026dst, \"dst\");\r\n    err = git_repository_index(\u0026index, src);\r\n    \r\n/*\r\n    err = git_index_write_tree(\u0026id, index);\r\n    if (err \u003c 0) {\r\n        printf(\"git_index_write ERROR\\n\");\r\n        printf(\"%s\\n\", giterr_last()-\u003emessage);\r\n        return 1;\r\n    } else {\r\n        git_oid_fmt(hex, \u0026id);\r\n        printf(\"git_index_write SUCCESS %s\\n\", hex);\r\n    }\r\n*/\r\n\r\n    err = git_index_write_tree_to(\u0026id, index, dst);\r\n    if (err \u003c 0) {\r\n        printf(\"git_index_write_to ERROR\\n\");\r\n        printf(\"%s\\n\", giterr_last()-\u003emessage);\r\n        return 1;\r\n    } else {\r\n        git_oid_fmt(hex, \u0026id);\r\n        printf(\"git_index_write_to SUCCESS %s\\n\", hex);\r\n    }\r\n    \r\n    return 0;\r\n}                                                    \r\n```\r\n\r\n### Expected behavior\r\n\r\nExpected output:\r\n\r\n```bash\r\n$ gcc bug.c -lgit2 \u0026\u0026 ./a.out \r\ngit_index_write_to SUCCESS 7f2dbfa479cbe99062de2ef82b713f044c4406d8\r\n```\r\n\r\n### Actual behavior\r\n\r\nActual output:\r\n\r\n```bash\r\n$ gcc bug.c -lgit2 \u0026\u0026 ./a.out \r\ngit_index_write_to ERROR\r\nfailed to insert entry: invalid object specified - hello.txt\r\n``` \r\n\r\nIf you uncomment the commented block in the c program above, then it works.\r\n\r\n### Version of libgit2 (release number or SHA1)\r\n\r\n0.28.1\r\n\r\n### Operating system(s) tested\r\n\r\nGentoo Linux, and Travis (Ubuntu Linux)","author":{"url":"https://github.com/jdavid","@type":"Person","name":"jdavid"},"datePublished":"2019-03-09T17:48:44.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/5015/libgit2/issues/5015"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:402472c1-0985-eb10-85ea-a33a47d70c7d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idEC18:350AA1:10FA901:16BD05F:6A5EA80E
html-safe-nonce68937a55bb28ae6ab95745cf72c0d2a40f6656857f3c738b905782d417a12d3d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQzE4OjM1MEFBMToxMEZBOTAxOjE2QkQwNUY6NkE1RUE4MEUiLCJ2aXNpdG9yX2lkIjoiNzQ4NzQzODE0MDQxMjExMDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac534f1810a78c15ac7f3e171f06ddd9910a5c8f42b35d5704f442467c5ba69dcc
hovercard-subject-tagissue:419097531
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/libgit2/libgit2/5015/issue_layout
twitter:imagehttps://opengraph.githubassets.com/31407b6d0ce551a2fc513bf345eff2fc9a50a01f7466b1b27d481e0b4beb9e44/libgit2/libgit2/issues/5015
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/31407b6d0ce551a2fc513bf345eff2fc9a50a01f7466b1b27d481e0b4beb9e44/libgit2/libgit2/issues/5015
og:image:altThis is a regression, it works fine with 0.27 Found while upgrading pygit2 to v0.28, see https://travis-ci.org/libgit2/pygit2/jobs/503956525#L1044 This is the only test failure in the pygit2 test s...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejdavid
hostnamegithub.com
expected-hostnamegithub.com
None7c7e31acb6a895494e518b880f5ccf39604f7fa9a8f2f3c64145efc3b776256d
turbo-cache-controlno-preview
go-importgithub.com/libgit2/libgit2 git https://github.com/libgit2/libgit2.git
octolytics-dimension-user_id394745
octolytics-dimension-user_loginlibgit2
octolytics-dimension-repository_id901662
octolytics-dimension-repository_nwolibgit2/libgit2
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id901662
octolytics-dimension-repository_network_root_nwolibgit2/libgit2
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release2d2ac9bdd71d5f53f2b731c9330677e38624e301
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/libgit2/libgit2/issues/5015#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flibgit2%2Flibgit2%2Fissues%2F5015
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flibgit2%2Flibgit2%2Fissues%2F5015
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=libgit2%2Flibgit2
Reloadhttps://github.com/libgit2/libgit2/issues/5015
Reloadhttps://github.com/libgit2/libgit2/issues/5015
Reloadhttps://github.com/libgit2/libgit2/issues/5015
Please reload this pagehttps://github.com/libgit2/libgit2/issues/5015
libgit2 https://github.com/libgit2
libgit2https://github.com/libgit2/libgit2
Notifications https://github.com/login?return_to=%2Flibgit2%2Flibgit2
Fork 2.6k https://github.com/login?return_to=%2Flibgit2%2Flibgit2
Star 10.5k https://github.com/login?return_to=%2Flibgit2%2Flibgit2
Code https://github.com/libgit2/libgit2
Issues 423 https://github.com/libgit2/libgit2/issues
Pull requests 110 https://github.com/libgit2/libgit2/pulls
Discussions https://github.com/libgit2/libgit2/discussions
Actions https://github.com/libgit2/libgit2/actions
Projects https://github.com/libgit2/libgit2/projects
Security and quality 9 https://github.com/libgit2/libgit2/security
Insights https://github.com/libgit2/libgit2/pulse
Code https://github.com/libgit2/libgit2
Issues https://github.com/libgit2/libgit2/issues
Pull requests https://github.com/libgit2/libgit2/pulls
Discussions https://github.com/libgit2/libgit2/discussions
Actions https://github.com/libgit2/libgit2/actions
Projects https://github.com/libgit2/libgit2/projects
Security and quality https://github.com/libgit2/libgit2/security
Insights https://github.com/libgit2/libgit2/pulse
Regression in git_index_write_tree_tohttps://github.com/libgit2/libgit2/issues/5015#top
https://github.com/jdavid
jdavidhttps://github.com/jdavid
on Mar 9, 2019https://github.com/libgit2/libgit2/issues/5015#issue-419097531
https://travis-ci.org/libgit2/pygit2/jobs/503956525#L1044https://travis-ci.org/libgit2/pygit2/jobs/503956525#L1044
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.