From 0dfae24d218a7780ce456f59cc2b6f2224bcc753 Mon Sep 17 00:00:00 2001 From: Oliver Stueker Date: Tue, 27 Sep 2016 15:21:34 -0230 Subject: [PATCH] test: add test for issue with negative offsets Signed-off-by: Felipe Contreras --- test/main.t | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/test/main.t b/test/main.t index 4318110..3af4fce 100755 --- a/test/main.t +++ b/test/main.t @@ -1052,4 +1052,25 @@ test_expect_success 'push annotated tag' ' test_cmp expected actual ' +test_expect_failure 'timezone issues with negative offsets' ' + test_when_finished "rm -rf hgrepo gitrepo1 gitrepo2" && + + hg init hgrepo && + + ( + git clone "hg::hgrepo" gitrepo1 && + cd gitrepo1 && + echo two >> content && + git add content && + git commit -m two --date="2016-09-26 00:00:00 -0230" && + git push + ) && + + git clone "hg::hgrepo" gitrepo2 && + + git --git-dir=gitrepo1/.git log -1 --format="%ai" > expected && + git --git-dir=gitrepo2/.git log -1 --format="%ai" > actual && + test_cmp expected actual +' + test_done