| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 039e265 commit a8f7e37
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,6 +2,13 @@ | |||
| 2 | 2 | Changelog | |
| 3 | 3 | ========= | |
| 4 | 4 | ||
| 5 | + 1.0.2 - Fixes | ||
| 6 | + ============= | ||
| 7 | + | ||
| 8 | + * CRITICAL: fixed incorrect `Commit` object serialization when authored or commit date had timezones which were not | ||
| 9 | + divisable by 3600 seconds. This would happen if the timezone was something like `+0530` for instance. | ||
| 10 | + * A list of all additional fixes can be found `on github <https://github.com/gitpython-developers/GitPython/issues?q=milestone%3A%22v1.0.2+-+Fixes%22+is%3Aclosed>`_ | ||
| 11 | + | ||
| 5 | 12 | 1.0.1 - Fixes | |
| 6 | 13 | ============= | |
| 7 | 14 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -73,7 +73,7 @@ def utctz_to_altz(utctz): | |||
| 73 | 73 | def altz_to_utctz_str(altz): | |
| 74 | 74 | """As above, but inverses the operation, returning a string that can be used | |
| 75 | 75 | in commit objects""" | |
| 76 | - utci = -1 * int((altz / 3600) * 100) | ||
| 76 | + utci = -1 * int((float(altz) / 3600) * 100) | ||
| 77 | 77 | utcs = str(abs(utci)) | |
| 78 | 78 | utcs = "0" * (4 - len(utcs)) + utcs | |
| 79 | 79 | prefix = (utci < 0 and '-') or '+' | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -76,7 +76,7 @@ def test_commit_iteration(self): | |||
| 76 | 76 | % (nc, elapsed_time, nc / elapsed_time), file=sys.stderr) | |
| 77 | 77 | ||
| 78 | 78 | def test_commit_serialization(self): | |
| 79 | - assert_commit_serialization(self.gitrwrepo, self.gitrwrepo.head, True) | ||
| 79 | + assert_commit_serialization(self.gitrwrepo, '58c78e6', True) | ||
| 80 | 80 | ||
| 81 | 81 | rwrepo = self.gitrwrepo | |
| 82 | 82 | make_object = rwrepo.odb.store | |
| Back | FazBrowse Home | New Git URL |
0 commit comments