Re: [PATCH 0/2] fix git-archive with empty trees

2013-03-10 Thread Junio C Hamano
Jeff King writes: > On Sun, Mar 10, 2013 at 09:31:24PM -0400, Jeff King wrote: > >> I noticed that "git archive" will barf when the root tree is empty. >> [...] >> I didn't bother even looking at empty subtrees. AFAIK, git should never >> produce them (it omits the tree entirely if there is no co

Re: [PATCH 0/2] fix git-archive with empty trees

2013-03-10 Thread Jeff King
On Sun, Mar 10, 2013 at 09:31:24PM -0400, Jeff King wrote: > I noticed that "git archive" will barf when the root tree is empty. > [...] > I didn't bother even looking at empty subtrees. AFAIK, git should never > produce them (it omits the tree entirely if there is no content in it). > You would h

[PATCH 0/2] fix git-archive with empty trees

2013-03-10 Thread Jeff King
I noticed that "git archive" will barf when the root tree is empty. Instead, it should probably return an empty archive. I doubt many people really care about this corner case in practice, but it seems like we should handle it more gracefully (and it's an easy fix). It came to my attention because