]> git.ipfire.org Git - thirdparty/git.git/commit
read-tree + fetch tests: test failing "--super-prefix" interaction
authorGlen Choo <chooglen@google.com>
Tue, 20 Dec 2022 12:39:49 +0000 (13:39 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 26 Dec 2022 01:21:43 +0000 (10:21 +0900)
commit0d1806e53de6ac26021d8aab918d76381287f339
tree35770d439f42991655af94a1cdd0d2de3aea6b7b
parent49eb1d388ae618b61058d14b811684a89bdf84b6
read-tree + fetch tests: test failing "--super-prefix" interaction

Ever since "git fetch --refetch" was introduced in 0f5e8851737 (Merge
branch 'rc/fetch-refetch', 2022-04-04) the test being added here would
fail. This is because "restore" will "read-tree .. --reset <hash>",
which will in turn invoke "fetch". The "fetch" will then die with:

fatal: fetch doesn't support --super-prefix

This edge case and other "--super-prefix" bugs will be fixed in
subsequent commits, but let's first add a "test_expect_failure" test
for it. It passes until the very last command in the test.

Signed-off-by: Glen Choo <chooglen@google.com>
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5616-partial-clone.sh