diff options
author | Han-Wen Nienhuys <hanwen@google.com> | 2019-08-07 23:28:32 +0200 |
---|---|---|
committer | Han-Wen Nienhuys <hanwen@google.com> | 2019-08-19 11:40:28 +0200 |
commit | d7ee5aafee7c4eabeea6de8dd125a1ad4ddcdc0f (patch) | |
tree | 14100d18d10f3d05d239478bf3a20bf27e6761e6 /org.eclipse.jgit.test/tst/org/eclipse/jgit | |
parent | 81801d6f965bacaed6c044ed26b5119043eb2133 (diff) | |
download | jgit-d7ee5aafee7c4eabeea6de8dd125a1ad4ddcdc0f.tar.gz jgit-d7ee5aafee7c4eabeea6de8dd125a1ad4ddcdc0f.zip |
reftable: increment pointer *after* reading uint16
This fixes timezone reads out of the reflog.
Change-Id: I126d8742e5e904a074c544514180720466164f7c
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
Diffstat (limited to 'org.eclipse.jgit.test/tst/org/eclipse/jgit')
-rw-r--r-- | org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/reftable/ReftableTest.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/reftable/ReftableTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/reftable/ReftableTest.java index b67ec563fd..0e33fa6e76 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/reftable/ReftableTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/reftable/ReftableTest.java @@ -624,6 +624,8 @@ public class ReftableTest { assertEquals(ObjectId.zeroId(), lc.getReflogEntry().getOldId()); assertEquals(id(1), lc.getReflogEntry().getNewId()); assertEquals(who, lc.getReflogEntry().getWho()); + // compare string too, to catch tz differences. + assertEquals(who.toExternalString(), lc.getReflogEntry().getWho().toExternalString()); assertEquals(msg, lc.getReflogEntry().getComment()); assertTrue(lc.next()); |