Title: UnicodeDecodeError when looking at the tagged_date · Issue #943 · gitpython-developers/GitPython · GitHub
Open Graph Title: UnicodeDecodeError when looking at the tagged_date · Issue #943 · gitpython-developers/GitPython
X Title: UnicodeDecodeError when looking at the tagged_date · Issue #943 · gitpython-developers/GitPython
Description: I can't get the tagged date for some repository tags. For example - import git r = git.Repo.clone_from("https://github.com/nodejs/node", "/tmp/nodegit") t = r.tags[10] t.object.tagged_date Error - ~/.local/lib/python3.7/site-packages/git...
Open Graph Description: I can't get the tagged date for some repository tags. For example - import git r = git.Repo.clone_from("https://github.com/nodejs/node", "/tmp/nodegit") t = r.tags[10] t.object.tagged_date Error - ...
X Description: I can't get the tagged date for some repository tags. For example - import git r = git.Repo.clone_from("https://github.com/nodejs/node", "/tmp/nodegit") t = r.tags[10] t.obj...
Opengraph URL: https://github.com/gitpython-developers/GitPython/issues/943
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"UnicodeDecodeError when looking at the tagged_date","articleBody":"I can't get the tagged date for some repository tags.\r\n\r\nFor example - \r\n\r\n```\r\nimport git\r\nr = git.Repo.clone_from(\"https://github.com/nodejs/node\", \"/tmp/nodegit\")\r\nt = r.tags[10]\r\nt.object.tagged_date\r\n```\r\n\r\nError - \r\n```\r\n~/.local/lib/python3.7/site-packages/gitdb/util.py in __getattr__(self, attr)\r\n 251 to be created and set. Next time the same attribute is reqeusted, it is simply\r\n 252 returned from our dict/slots. \"\"\"\r\n--\u003e 253 self._set_cache_(attr)\r\n 254 # will raise in case the cache was not created\r\n 255 return object.__getattribute__(self, attr)\r\n\r\n/tmp/GitPython/git/objects/tag.py in _set_cache_(self, attr)\r\n 51 if attr in TagObject.__slots__:\r\n 52 ostream = self.repo.odb.stream(self.binsha)\r\n---\u003e 53 lines = ostream.read().decode(defenc).splitlines()\r\n 54\r\n 55 _obj, hexsha = lines[0].split(\" \")\r\n\r\nUnicodeDecodeError: 'utf-8' codec can't decode byte 0xe1 in position 392: invalid continuation byte\r\n```\r\n\r\nIt happens for the following repositories - \r\nhttps://github.com/nodejs/node (tag \"v0.1.0\")\r\nhttps://github.com/OpenVPN/openvpn (tag \"v2.3.1\")\r\n\r\nIt reproduces in the latest version.\r\n","author":{"url":"https://github.com/cydan33","@type":"Person","name":"cydan33"},"datePublished":"2019-10-16T15:33:28.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/943/GitPython/issues/943"}
| 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:06b2b06c-44ab-be55-1df4-fd4ab4d7af14 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B7BA:A74F2:E1C982:12CAC92:69698C14 |
| html-safe-nonce | 5cf4dc16a489d073f8783820d4f31d3536633e950a522af85c1454d86016a287 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCN0JBOkE3NEYyOkUxQzk4MjoxMkNBQzkyOjY5Njk4QzE0IiwidmlzaXRvcl9pZCI6IjIzMTMzMDE0OTIyNzQ2NjI0MjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8a4a4b593246421f53e89e1ab1b40241a96116294da05e016380dde25dac7772 |
| hovercard-subject-tag | issue:507930645 |
| 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/943/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c00773ced6ac4167449c74ebde7183fb0cf8d4bd90051eb1a79d52712cbfb04c/gitpython-developers/GitPython/issues/943 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c00773ced6ac4167449c74ebde7183fb0cf8d4bd90051eb1a79d52712cbfb04c/gitpython-developers/GitPython/issues/943 |
| og:image:alt | I can't get the tagged date for some repository tags. For example - import git r = git.Repo.clone_from("https://github.com/nodejs/node", "/tmp/nodegit") t = r.tags[10] t.object.tagged_date Error - ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | cydan33 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 533e7cac596c452090972c1150d587fd0b36531b8dc4e8bbfe4ab694aca02408 |
| 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 | 63d27af10eea2ccab520b162530cf6c7b739e767 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width