git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Nicolas Vilz <niv@iaglans.de>
To: Pavel Roskin <proski@gnu.org>
Cc: git@vger.kernel.org
Subject: Re: git 1.5.1-rc1 doesn't like empty files
Date: Tue, 20 Mar 2007 05:24:38 +0100	[thread overview]
Message-ID: <20070320042438.GA31795@hermes.lan.home.vilz.de> (raw)
In-Reply-To: <1174361424.3143.42.camel@dv>

On Mon, Mar 19, 2007 at 11:30:24PM -0400, Pavel Roskin wrote:
> 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
> $

I get the following after the last command:

Created initial commit a0e02efbe85ee1c1f4b8ba703ccae2f4e64e6ed0
 0 files changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 file

I use git version 1.5.1.rc1.595.gd1206 on a current gentoo system
(Portage 2.1.2.2 (default-linux/amd64/2006.1/desktop, gcc-4.1.2,
glibc-2.5-r1, 2.6.20-gentoo-r3 x86_64)) with a not so current portage 
tree (Timestamp of tree: Sat, 17 Mar 2007 12:00:01 +0000).

in a few hours, i can test that on ppc32 arch, too, if you like.

Regards,
Nicolas Vilz

  reply	other threads:[~2007-03-20  4:51 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-20  3:30 git 1.5.1-rc1 doesn't like empty files Pavel Roskin
2007-03-20  4:24 ` Nicolas Vilz [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070320042438.GA31795@hermes.lan.home.vilz.de \
    --to=niv@iaglans.de \
    --cc=git@vger.kernel.org \
    --cc=proski@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).