| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -60,8 +60,13 @@ def _set_cache_(self, attr): | |||
| 60 | 60 | tagger_info = lines[3][7:]# tagger <actor> <date> | |
| 61 | 61 | self.tagger, self.tagged_date = utils.parse_actor_and_date(tagger_info) | |
| 62 | 62 | ||
| 63 | - # line 4 empty - check git source to figure out purpose | ||
| 64 | - self.message = "\n".join(lines[5:]) | ||
| 63 | + # line 4 empty - it could mark the beginning of the next header | ||
| 64 | + # in csse there really is no message, it would not exist. Otherwise | ||
| 65 | + # a newline separates header from message | ||
| 66 | + if len(lines) > 5: | ||
| 67 | + self.message = "\n".join(lines[5:]) | ||
| 68 | + else: | ||
| 69 | + self.message = '' | ||
| 65 | 70 | # END check our attributes | |
| 66 | 71 | else: | |
| 67 | 72 | super(TagObject, self)._set_cache_(attr) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments