We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41b9cea commit c73b239Copy full SHA for c73b239
git/objects/tag.py
@@ -59,8 +59,9 @@ def _set_cache_(self, attr):
59
60
self.tag = lines[2][4:] # tag <tag name>
61
62
- tagger_info = lines[3] # tagger <actor> <date>
63
- 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>
64
+ self.tagger, self.tagged_date, self.tagger_tz_offset = parse_actor_and_date(tagger_info)
65
66
# line 4 empty - it could mark the beginning of the next header
67
# in case there really is no message, it would not exist. Otherwise
0 commit comments