diff options
| author | Sebastian Thiel <sthiel@thoughtworks.com> | 2019-07-06 11:59:55 +0800 |
|---|---|---|
| committer | Sebastian Thiel <sthiel@thoughtworks.com> | 2019-07-06 12:00:35 +0800 |
| commit | c73b239bd10ae2b3cff334ace7ca7ded44850cbd (patch) | |
| tree | 526e21126f95aeacefdf8e9aff7f70d1c0730008 /git/objects | |
| parent | 41b9cea832ad5614df94c314d29d4b044aadce88 (diff) | |
| download | GitPython-c73b239bd10ae2b3cff334ace7ca7ded44850cbd.tar.gz GitPython-c73b239bd10ae2b3cff334ace7ca7ded44850cbd.zip | |
Don't assume there is a tag author in tags
Fixes #842
Diffstat (limited to 'git/objects')
| -rw-r--r-- | git/objects/tag.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/git/objects/tag.py b/git/objects/tag.py index 19cb04bf..4295a03a 100644 --- a/git/objects/tag.py +++ b/git/objects/tag.py @@ -59,8 +59,9 @@ class TagObject(base.Object): self.tag = lines[2][4:] # tag <tag name> - tagger_info = lines[3] # tagger <actor> <date> - self.tagger, self.tagged_date, self.tagger_tz_offset = parse_actor_and_date(tagger_info) + if len(lines) > 3: + tagger_info = lines[3] # tagger <actor> <date> + self.tagger, self.tagged_date, self.tagger_tz_offset = parse_actor_and_date(tagger_info) # line 4 empty - it could mark the beginning of the next header # in case there really is no message, it would not exist. Otherwise |
