git-archive: don't die when repository uses subprojects
commit02851e0b9ed840c2e6881dd56072eefc17c8b98b
authorLars Hjemli <hjemli@gmail.com>
Fri, 11 May 2007 16:55:21 +0000 (11 18:55 +0200)
committerJunio C Hamano <junkio@cox.net>
Sat, 12 May 2007 16:35:07 +0000 (12 09:35 -0700)
treea0ccc46ca44cfa4f23f0eaa8c60b00fb991318bb
parent2206537c07973fc2933092313d95340e076440e4
git-archive: don't die when repository uses subprojects

Both archive-tar and archive-zip needed to be taught about subprojects.
The tar function died when trying to read the subproject commit object,
while the zip function reported "unsupported file mode".

This fixes both by representing the subproject as an empty directory.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
archive-tar.c
archive-zip.c