From d50903862956d7091cc0851c8d518dd970ffcce4 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 30 Aug 2016 01:37:43 +0100 Subject: Test suite: inarchivecopy: use t-sametree-parent Otherwise different history between fetch and clone breaks the test. Signed-off-by: Ian Jackson --- tests/tests/inarchivecopy | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/tests/inarchivecopy b/tests/tests/inarchivecopy index ed0bcae..fbd197d 100755 --- a/tests/tests/inarchivecopy +++ b/tests/tests/inarchivecopy @@ -38,14 +38,21 @@ copy-check () { git merge --ff-only dgit/dgit/stable copy-check-good + local fetched=$(t-sametree-parent HEAD) cd .. rm -rf example.cloned t-dgit clone $p stable example.cloned cd example.cloned + t-refs-same-start copy-check-good + local cloned=$(t-sametree-parent HEAD) cd .. + + t-refs-same-start + t-ref-same-val fetched $fetched + t-ref-same-val cloned $cloned } copy-check 2.0 -- cgit v1.2.3