mirror of
https://github.com/mnauw/git-remote-hg.git
synced 2026-06-23 01:00:45 +02:00
test: add test for issue with negative offsets
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
committed by
Felipe Contreras
parent
c7dbb5612b
commit
0dfae24d21
21
test/main.t
21
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
|
||||
|
||||
Reference in New Issue
Block a user