Add a test for another combination of --reference
commitfabb01996be9f7c8862ab1a6fdfd83c90be5324a
authorJohan Herland <johan@herland.net>
Thu, 22 May 2008 22:03:05 +0000 (22 18:03 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 23 May 2008 06:35:09 +0000 (22 23:35 -0700)
tree80238af735b0861b2042af4a50654ed3b76daa2d
parent4ba776c231f27e69435d76bac98d033db859cd6f
Add a test for another combination of --reference

In this case, the reference repository has some useful loose objects,
but not all useful objects, and we make sure that we can find the
objects we fetch from the repository we're cloning in the new
repository, instead of potentially being distracted by the reference
repository.

Doing the wrong thing in a builtin-clone implementation would lead to
this looking for an object in the wrong place, not finding it (because
it's only in the right place), and crashing.

Signed-off-by: Johan Herland <johan@herland.net>
Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5700-clone-reference.sh