clone: Allow repo using gitfile as a reference
commitb552b56df2c13885a67ca9ec9f76c21d3b7e2cde
authorAaron Schrab <aaron@schrab.com>
Tue, 9 Apr 2013 22:22:00 +0000 (9 18:22 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 9 Apr 2013 22:40:00 +0000 (9 15:40 -0700)
tree5c6d062ab0f30792e6ec97e08d402f85299abd7d
parent0658569eb03e743ef46abd06abd9d0d81d53e72c
clone: Allow repo using gitfile as a reference

Try reading gitfile files when processing --reference options to clone.
This will allow, among other things, using a submodule checked out with
a recent version of git as a reference repository without requiring the
user to have internal knowledge of submodule layout.

Signed-off-by: Aaron Schrab <aaron@schrab.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/clone.c
t/t5700-clone-reference.sh