git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git 1.5.1-rc1 doesn't like empty files
@ 2007-03-20  3:30 Pavel Roskin
  2007-03-20  4:24 ` Nicolas Vilz
                   ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: Pavel Roskin @ 2007-03-20  3:30 UTC (permalink / raw)
  To: git

Hello!

I don't know where this problem appeared, but it present in the current
git (1.5.1-rc1).  Empty files become invalid objects in the repository:

$ touch file 
$ git-init
Initialized empty Git repository in .git/
$ git-add file
$ git-commit -m "first commit"
Created initial commit 16a476808d3cb0a4758997ba58193a9dcfad0fd8
error: garbage at end of loose object
'e69de29bb2d1d6434b8b29ae775ad8c2e48c5391'
 0 files changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 file
$

A file with a one newline is OK (replace "touch file with "echo >file"
and the error will go away).

This is Linux, Fedora Development, i386.

The testsuite fails at test 7 in t9200-git-cvsexportcommit.sh, but it
seems to be unrelated.

-- 
Regards,
Pavel Roskin

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2007-03-20 15:46 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-20  3:30 git 1.5.1-rc1 doesn't like empty files Pavel Roskin
2007-03-20  4:24 ` Nicolas Vilz
2007-03-20  4:54 ` Linus Torvalds
2007-03-20  5:08   ` Pavel Roskin
2007-03-20  5:41     ` Linus Torvalds
2007-03-20  5:50       ` Pavel Roskin
2007-03-20  5:56       ` Shawn O. Pearce
2007-03-20  7:04       ` Alexander Litvinov
2007-03-20  8:43       ` Andy Parkins
2007-03-20  8:49         ` Junio C Hamano
2007-03-20  9:26           ` Andy Parkins
2007-03-20 15:45             ` Linus Torvalds
2007-03-20  5:29 ` Junio C Hamano
2007-03-20  5:47   ` Pavel Roskin
2007-03-20  5:49   ` Linus Torvalds
2007-03-20  6:00     ` Junio C Hamano
2007-03-20  6:05       ` Junio C Hamano
2007-03-20 15:46         ` Linus Torvalds

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).