git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Possible d/f conflict bug or regression
@ 2008-03-29  7:13 Christian Couder
  2008-03-29  8:01 ` Christian Couder
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Christian Couder @ 2008-03-29  7:13 UTC (permalink / raw)
  To: git, Junio Hamano, krh

Hi,

When doing something like:

mkdir testdir &&
        cd testdir &&
        touch foo &&
        git init &&
        git add . &&
        git commit -m 'Initial commit.' &&
        rm foo &&
        mkdir foo &&
        git commit -a -m 'Test.'

I get:

Initialized empty Git repository in .git/
Created initial commit 3f945ca: Initial commit.
 0 files changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 foo
fatal: unable to index file foo

I think it's quite bad that it doesn't work.

It seems it also doesn't work when adding "touch foo/bar" before "git 
commit -a -m 'Test.'".

I used:

$ git --version
git version 1.5.5.rc2

It worked with 1.5.3 and I bisected it to the git commit port to C:

commit f5bbc3225c4b073a7ff3218164a0c820299bc9c6
Author: Kristian H<C3><B8>gsberg <krh@redhat.com>
Date:   Thu Nov 8 11:59:00 2007 -0500

    Port git commit to C.

    This makes git commit a builtin and moves git-commit.sh to
    contrib/examples.  This also removes the git-runstatus
    helper, which was mostly just a git-status.sh implementation detail.

    Signed-off-by: Kristian H<C3><B8>gsberg <krh@redhat.com>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>

Thanks,
Christian.

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

end of thread, other threads:[~2008-03-31  3:42 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-29  7:13 Possible d/f conflict bug or regression Christian Couder
2008-03-29  8:01 ` Christian Couder
2008-03-30  1:29 ` Bryan Donlan
2008-03-30  4:44   ` Christian Couder
2008-03-30  4:51     ` Bryan Donlan
2008-03-30 23:46 ` Junio C Hamano
2008-03-31  0:28   ` [PATCH 1/3] Add corner case tests for diff-index and diff-files Junio C Hamano
2008-03-31  0:29   ` [PATCH 2/3] diff-index: careful when inspecting work tree items Junio C Hamano
2008-03-31  3:12     ` Junio C Hamano
2008-03-31  3:47       ` Christian Couder
2008-03-31  0:30   ` [PATCH 3/3] diff-files: " Junio C Hamano

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).