Title: not enough lines in _set_cache method · Issue #842 · gitpython-developers/GitPython · GitHub
Open Graph Title: not enough lines in _set_cache method · Issue #842 · gitpython-developers/GitPython
X Title: not enough lines in _set_cache method · Issue #842 · gitpython-developers/GitPython
Description: There is a list index out of range when printing the tag message of systemd repository Reproducer: clone systemd repository with `git clone https://github.com/systemd/systemd.git' from git import Repo r = Repo('./systemd') t = r.tags['06...
Open Graph Description: There is a list index out of range when printing the tag message of systemd repository Reproducer: clone systemd repository with `git clone https://github.com/systemd/systemd.git' from git import R...
X Description: There is a list index out of range when printing the tag message of systemd repository Reproducer: clone systemd repository with `git clone https://github.com/systemd/systemd.git' from git impo...
Opengraph URL: https://github.com/gitpython-developers/GitPython/issues/842
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"not enough lines in _set_cache method","articleBody":"There is a `list index out of range` when printing the tag message of systemd repository\r\n\r\nReproducer: \r\nclone systemd repository with `git clone https://github.com/systemd/systemd.git'\r\n```python\r\nfrom git import Repo\r\nr = Repo('./systemd')\r\nt = r.tags['060']\r\nif t.tag is not None:\r\n print(t.tag.message)\r\n```\r\n```\r\nIndexError Traceback (most recent call last)\r\n\u003cipython-input-15-462f7dbfed04\u003e in \u003cmodule\u003e()\r\n----\u003e 1 t.tag.message\r\n\r\n/usr/lib/python3.7/site-packages/gitdb/util.py in __getattr__(self, attr)\r\n 254 to be created and set. Next time the same attribute is reqeusted, it is simply\r\n 255 returned from our dict/slots. \"\"\"\r\n--\u003e 256 self._set_cache_(attr)\r\n 257 # will raise in case the cache was not created\r\n 258 return object.__getattribute__(self, attr)\r\n\r\n/usr/lib/python3.7/site-packages/git/objects/tag.py in _set_cache_(self, attr)\r\n 60 self.tag = lines[2][4:] # tag \u003ctag name\u003e\r\n 61 \r\n---\u003e 62 tagger_info = lines[3] # tagger \u003cactor\u003e \u003cdate\u003e\r\n 63 self.tagger, self.tagged_date, self.tagger_tz_offset = parse_actor_and_date(tagger_info)\r\n 64 \r\n\r\nIndexError: list index out of range\r\n```","author":{"url":"https://github.com/ret2libc","@type":"Person","name":"ret2libc"},"datePublished":"2019-02-13T17:39:06.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/842/GitPython/issues/842"}
| 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:a03d72e6-8b38-a5d2-036d-8e5f4fc5e501 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CF1C:27A700:669576:9171FD:6968FA1C |
| html-safe-nonce | 065a0c3def5edb9fe536be1b6f35b61ce9c1fe20c4f7585bdaea361fc87719c7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRjFDOjI3QTcwMDo2Njk1NzY6OTE3MUZEOjY5NjhGQTFDIiwidmlzaXRvcl9pZCI6IjU2ODkyMTIxMzU1ODU0MTM2NjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ed33dbfe2c7a6a6af06f7aa1298a16341f262f18383a9cff0d2c4b9437233767 |
| hovercard-subject-tag | issue:409922232 |
| 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/842/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4683f1d35d633be108297a597170bb25b0db62debbd53f20e22deb93616573ac/gitpython-developers/GitPython/issues/842 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4683f1d35d633be108297a597170bb25b0db62debbd53f20e22deb93616573ac/gitpython-developers/GitPython/issues/842 |
| og:image:alt | There is a list index out of range when printing the tag message of systemd repository Reproducer: clone systemd repository with `git clone https://github.com/systemd/systemd.git' from git import R... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ret2libc |
| hostname | github.com |
| expected-hostname | github.com |
| None | b229519d8adb10c7bce106d807003c585a919bd07491d720d8aada92dc43746b |
| 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 | 176ddd19d172d50da7e20b971f928ffe57138b35 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width