Title: ValueError: unexpected delta opcode 0 · Issue #106 · gitpython-developers/gitdb · GitHub
Open Graph Title: ValueError: unexpected delta opcode 0 · Issue #106 · gitpython-developers/gitdb
X Title: ValueError: unexpected delta opcode 0 · Issue #106 · gitpython-developers/gitdb
Description: Summary While using Aider, which uses gitdb==4.0.10 (I also see the same issue when upgrading to 4.0.11) the following fatal failure occurs: aider ... Use /help to see in-chat commands, run with --help to see cmd line args Traceback (mos...
Open Graph Description: Summary While using Aider, which uses gitdb==4.0.10 (I also see the same issue when upgrading to 4.0.11) the following fatal failure occurs: aider ... Use /help to see in-chat commands, run with --...
X Description: Summary While using Aider, which uses gitdb==4.0.10 (I also see the same issue when upgrading to 4.0.11) the following fatal failure occurs: aider ... Use /help to see in-chat commands, run with --...
Opengraph URL: https://github.com/gitpython-developers/gitdb/issues/106
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ValueError: unexpected delta opcode 0","articleBody":"# Summary\r\nWhile using [Aider](https://github.com/paul-gauthier/aider), which uses `gitdb==4.0.10` (I also see the same issue when upgrading to 4.0.11) the following fatal failure occurs:\r\n```\r\naider\r\n...\r\nUse /help to see in-chat commands, run with --help to see cmd line args\r\nTraceback (most recent call last):\r\n File \"/opt/homebrew/bin/aider\", line 33, in \u003cmodule\u003e\r\n sys.exit(load_entry_point('aider-chat', 'console_scripts', 'aider')())\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/Users/steve_cosenza/workspace/aider/aider/main.py\", line 576, in main\r\n coder.run()\r\n File \"/Users/steve_cosenza/workspace/aider/aider/coders/base_coder.py\", line 319, in run\r\n new_user_message = self.run_loop()\r\n ^^^^^^^^^^^^^^^\r\n File \"/Users/steve_cosenza/workspace/aider/aider/coders/base_coder.py\", line 390, in run_loop\r\n self.get_addable_relative_files(),\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/Users/steve_cosenza/workspace/aider/aider/coders/base_coder.py\", line 714, in get_addable_relative_files\r\n return set(self.get_all_relative_files()) - set(self.get_inchat_relative_files())\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/Users/steve_cosenza/workspace/aider/aider/coders/base_coder.py\", line 696, in get_all_relative_files\r\n files = self.repo.get_tracked_files()\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/Users/steve_cosenza/workspace/aider/aider/repo.py\", line 187, in get_tracked_files\r\n for blob in commit.tree.traverse():\r\n File \"/opt/homebrew/lib/python3.11/site-packages/git/objects/util.py\", line 526, in _traverse\r\n addToStack(stack, item, branch_first, nd)\r\n File \"/opt/homebrew/lib/python3.11/site-packages/git/objects/util.py\", line 488, in addToStack\r\n lst = self._get_intermediate_items(item)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/opt/homebrew/lib/python3.11/site-packages/git/objects/tree.py\", line 239, in _get_intermediate_items\r\n return tuple(index_object._iter_convert_to_object(index_object._cache))\r\n ^^^^^^^^^^^^^^^^^^^\r\n File \"/opt/homebrew/lib/python3.11/site-packages/gitdb/util.py\", line 253, in __getattr__\r\n self._set_cache_(attr)\r\n File \"/opt/homebrew/lib/python3.11/site-packages/git/objects/tree.py\", line 246, in _set_cache_\r\n self._cache: List[TreeCacheTup] = tree_entries_from_data(ostream.read())\r\n ^^^^^^^^^^^^^^\r\n File \"/opt/homebrew/lib/python3.11/site-packages/gitdb/base.py\", line 138, in read\r\n return self[3].read(size)\r\n ^^^^^^^^^^^^^^^^^^\r\n File \"/opt/homebrew/lib/python3.11/site-packages/gitdb/stream.py\", line 487, in read\r\n bl = self._size - self._br # bytes left\r\n ^^^^^^^^^^\r\n File \"/opt/homebrew/lib/python3.11/site-packages/gitdb/util.py\", line 253, in __getattr__\r\n self._set_cache_(attr)\r\n File \"/opt/homebrew/lib/python3.11/site-packages/gitdb/stream.py\", line 461, in _set_cache_brute_\r\n apply_delta_data(bbuf, src_size, ddata, len(ddata), tbuf.write)\r\n File \"/opt/homebrew/lib/python3.11/site-packages/gitdb/fun.py\", line 673, in apply_delta_data\r\n raise ValueError(\"unexpected delta opcode 0\")\r\nValueError: unexpected delta opcode 0\r\n```\r\n\r\n# Repro Details\r\n* The git repo being used is a large Github Enterprise hosted monorepo\r\n* I'm running Aider/gitdb on a Mac M2 running Sonoma 14.0\r\n* The following git client version is installed: 2.40.0","author":{"url":"https://github.com/scosenza","@type":"Person","name":"scosenza"},"datePublished":"2023-10-27T02:04:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/106/gitdb/issues/106"}
| 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:411142e3-4b8c-a3ee-328b-b835ca7a2d6b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B2C8:13F557:CDAB65:11B313F:6968A51D |
| html-safe-nonce | c86ebb4304433672eaaddffef016f33f702423c64aac37891e8d7322b7d9c3a4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMkM4OjEzRjU1NzpDREFCNjU6MTFCMzEzRjo2OTY4QTUxRCIsInZpc2l0b3JfaWQiOiI2OTg5MDUxMDAyMzcwOTU4NjIxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 7318a1b2d0c42801edfeb2cc5aa65fa1a9f684be4b375f9b38aa0248922f5227 |
| hovercard-subject-tag | issue:1964634761 |
| 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/gitdb/106/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8ac957f5842a7a0d84056a4438634149d35148f64d2a506ac133d396117e748d/gitpython-developers/gitdb/issues/106 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8ac957f5842a7a0d84056a4438634149d35148f64d2a506ac133d396117e748d/gitpython-developers/gitdb/issues/106 |
| og:image:alt | Summary While using Aider, which uses gitdb==4.0.10 (I also see the same issue when upgrading to 4.0.11) the following fatal failure occurs: aider ... Use /help to see in-chat commands, run with --... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | scosenza |
| hostname | github.com |
| expected-hostname | github.com |
| None | fdc7c66bd36a6c12eb8e771e806db863266e573fc299e77f27505a768d4f8a98 |
| turbo-cache-control | no-preview |
| go-import | github.com/gitpython-developers/gitdb git https://github.com/gitpython-developers/gitdb.git |
| octolytics-dimension-user_id | 503709 |
| octolytics-dimension-user_login | gitpython-developers |
| octolytics-dimension-repository_id | 1126093 |
| octolytics-dimension-repository_nwo | gitpython-developers/gitdb |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1126093 |
| octolytics-dimension-repository_network_root_nwo | gitpython-developers/gitdb |
| 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 | 3223a6503d318917691422cdadfbe16cd8fb21e5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width