Title: Blob object's data stream incomplete for certain files · Issue #220 · gitpython-developers/GitPython · GitHub
Open Graph Title: Blob object's data stream incomplete for certain files · Issue #220 · gitpython-developers/GitPython
X Title: Blob object's data stream incomplete for certain files · Issue #220 · gitpython-developers/GitPython
Description: >>> import git >>> git.__version__ '0.3.2.1' >>> import os >>> os.mkdir('foo') >>> repo = git.Repo.init('foo') >>> repo.create_remote('origin', 'https://github.com/terminalmage/gitfs-test1.git')
Open Graph Description: >>> import git >>> git.__version__ '0.3.2.1' >>> import os >>> os.mkdir('foo') >>> repo = git.Repo.init('foo') >>> repo.create_remote('origin', 'https://github.com/terminalmage/gitfs-test1.git') X Description: >>> import git >>> git.__version__ '0.3.2.1' >>> import os >>> os.mkdir('foo') >>> repo = git.Repo.init('foo') >>> repo...
Opengraph URL: https://github.com/gitpython-developers/GitPython/issues/220
X: @github
Domain: github.com
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Blob object's data stream incomplete for certain files","articleBody":"``` python\n>>> import git\n>>> git.__version__\n'0.3.2.1'\n>>> import os\n>>> os.mkdir('foo')\n>>> repo = git.Repo.init('foo')\n>>> repo.create_remote('origin', 'https://github.com/terminalmage/gitfs-test1.git')\n\u003cgit.Remote \"origin\">\n>>> repo.git.config('http.sslVerify', 'true')\n''\n>>> origin = repo.remotes[0]\n>>> origin.fetch()\n[\u003cgit.remote.FetchInfo at 0x7f2f12da6aa0>,\n \u003cgit.remote.FetchInfo at 0x7f2f12da6af0>,\n \u003cgit.remote.FetchInfo at 0x7f2f12da6b40>]\n>>> repo.refs\n[\u003cgit.RemoteReference \"refs/remotes/origin/master\">,\n \u003cgit.RemoteReference \"refs/remotes/origin/slash/test\">,\n \u003cgit.TagReference \"refs/tags/foo_tag\">]\n>>> tree = repo.refs[0].commit.tree\n>>> blob = tree / 'loremipsum.txt'\n>>> blob\n\u003cgit.Blob \"93c8ff2243c4d2e9c63850d025a25ed38a51e623\">\n>>> blob.size\n18804\n>>> len(blob.data_stream.read())\n18804\n>>> blob = tree / 'saltstack.png'\n>>> blob.size\n7377\n>>> len(blob.data_stream.read())\n7377\n>>> blob = tree / 'imagemagick_6.7.7.10-6ubuntu4_amd64.deb'\n>>> blob.size\n222318\n>>> len(blob.data_stream.read())\n221818\n>>> blob = tree / 'archlinux_1080p.png'\n>>> blob.size\n778428\n>>> len(blob.data_stream.read())\n778428\n```\n\nNote that the .deb package's data stream is not the correct size (221818 instead of 222318 as it should be).\n\nThis doesn't seem to be related to the file size, as a larger PNG image works just fine. Both the PNG images and the .deb package are marked as binary files in the .gitattributes file, as well.\n","author":{"url":"https://github.com/terminalmage","@type":"Person","name":"terminalmage"},"datePublished":"2014-12-31T00:20:43Z","url":"https://github.com/gitpython-developers/GitPython/issues/220"}
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:9d51efc6-229a-2ae1-0c98-ae457d71a751 current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id B00A:114DF4:73CD66:9A5630:6B00AE0F html-safe-nonce 7ffe1c5a90ed431638e425acf42da1b955a57a240fd79f8268e9ba15240d30a3 visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDBBOjExNERGNDo3M0NENjY6OUE1NjMwOjZCMDBBRTBGIiwidmlzaXRvcl9pZCI6IjgzNDMxOTg5MDE3MTI0OTgxOTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== visitor-hmac cb7237800900e99c6aaf51e38407184b622c677eb5d496ebd5203f20a68befb7 hovercard-subject-tag issue:53158590 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/gitpython-developers/GitPython/220/issue_layout twitter:image https://opengraph.githubassets.com/0bf34a7d011e7f714fd83d8b417c23693f754a17a6324122dfad239440f383f3/gitpython-developers/GitPython/issues/220 twitter:card summary_large_image og:image https://opengraph.githubassets.com/0bf34a7d011e7f714fd83d8b417c23693f754a17a6324122dfad239440f383f3/gitpython-developers/GitPython/issues/220 og:image:alt >>> import git >>> git.__version__ '0.3.2.1' >>> import os >>> os.mkdir('foo') >>> repo = git.Repo.init('foo') >>> repo.create_remote('origin', 'https://github.com/terminalmage/gitfs-test1.git') og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username terminalmage hostname github.com expected-hostname github.com None c0dd5f5d6f515a591019ecd66df2c4eab3379c2d3b0777568a90d8c7ae10b79e turbo-cache-control no-preview go-import github.com/gitpython-developers/GitPython git https://github.com/gitpython-developers/GitPython.git octolytics-dimension-user_id 503709 octolytics-dimension-user_login gitpython-developers octolytics-dimension-repository_id 1126087 octolytics-dimension-repository_nwo gitpython-developers/GitPython octolytics-dimension-repository_public true octolytics-dimension-repository_is_fork false octolytics-dimension-repository_network_root_id 1126087 octolytics-dimension-repository_network_root_nwo gitpython-developers/GitPython 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 729d8cda69b3d267995675dfbf89ff27ccf61bf6 ui-target full theme-color #1e2327 color-scheme light dark react-app-name issues
URLs of crawlers that visited me.