From 211f89f0a305ead6eb36ce7811cb2c294167535c Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Wed, 8 Jan 2025 12:47:00 +0100 Subject: Test deduplication of target repos in precomputed roots --- test/end-to-end/git-import/computed.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'test/end-to-end/git-import/computed.sh') diff --git a/test/end-to-end/git-import/computed.sh b/test/end-to-end/git-import/computed.sh index b60ea00b..f51549b4 100644 --- a/test/end-to-end/git-import/computed.sh +++ b/test/end-to-end/git-import/computed.sh @@ -179,7 +179,13 @@ EOF "${GIT_IMPORT}" -C repos.template.json --as foo -b foomaster "${REPO_DIRS}/foo" \ | "${GIT_IMPORT}" -C - --as bar -b barmaster "${REPO_DIRS}/bar" \ | "${GIT_IMPORT}" -C - -b barmaster "${REPO_DIRS}/bar" bar_root \ - > repos-full.json + > repos-full.template.json + +# Test deduplication takes into account target repos of precomputed roots +# as well. 'repo' isn't used directly, but it can shadow 'bar_root/root' +# during deduplication: +"${GIT_IMPORT}" -C repos-full.template.json -b barmaster "${REPO_DIRS}/bar" \ + root > repos-full.json echo cat repos-full.json -- cgit v1.2.3