Skip to contentSkip to conversation

t5710: fix two thinkos.

PATCH New Junio C Hamano 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 t5710: fix two thinkos.

The intention of the test seems to be to build a long chain of clones that locally borrow objects from their parents and see the system give up dereferencing long chains. There were two problems:

(1) it did not test the right repository;
(2) it did not build a chain long enough to trigger the limitation.

I do not think it is a good test to make sure the limitation the current implementation happens to have still exists, but that is a topic at a totally different level.

At least this fixes the broken test.

---

* Spotted this after the fix to git-fsck-objects by Linus not to require a valid HEAD.

 t/t5710-info-alternate.sh |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
t/t5710-info-alternate.sh +2 -0
index 2e1b48a..b9f6d96 100755
@@ -58,6 +58,8 @@ test_expect_failure 'creating too deep n
 git clone -l -s D E &&
 git clone -l -s E F &&
 git clone -l -s F G &&
+git clone -l -s G H &&
+cd H &&
 test_valid_repo'
 
 cd "$base_dir"
Signature · 1 line
1.4.2.g2782