Re: git 1.5.1-rc1 doesn't like empty files
- From
Linus Torvalds <torvalds@linux-foundation.org>
- Date
- Mar 20, 2007, 05:41 UTC
- Message-ID
- <Pine.LNX.4.64.0703192237100.6730@woody.linux-foundation.org>
- In-Reply-To
- <1174367312.3143.75.camel@dv>
On Tue, 20 Mar 2007, Pavel Roskin wrote:
> > .git/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391 is the same 9 > bytes: 30 78 9c 03 00 00 00 00 01
Ahh.. You have
[core] legacyheaders = false
don't you? If you didn't, you should see a 15-byte object, not a 9-byte one.
And yes, I can reproduce this with that "core.legacyheaders=false" setting. It seems that config option is simply broken, and we never noticed, because almost nobody uses it.
Alexander - do you happen to have that "legacyheaders" setting too? Maybe that explains your pack corruption?
Linus