git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff King <peff@peff.net>
To: Philipp Metzler <phil@goli.at>
Cc: Junio C Hamano <gitster@pobox.com>, git@vger.kernel.org
Subject: Re: git commit -a reports untracked files after a clone
Date: Mon, 16 May 2011 10:55:35 -0400	[thread overview]
Message-ID: <20110516145535.GA25930@sigill.intra.peff.net> (raw)
In-Reply-To: <1D7CF554-A4AC-49EF-A095-9B05167BC458@goli.at>

On Mon, May 16, 2011 at 02:38:33PM +0200, Philipp Metzler wrote:

> Could be a race condition / heisenbug yep. The result of "git commit
> -a" differs - the directories vcs-svn and xdiff are there all the time
> but not the others. The only constant thing is that the command "git
> status" always "cleans up" everything. Another run:

OK, I'm making some progress. I can replicate on Linux with:

  $ git config core.ignorecase true
  $ git clone git foo
  $ cd foo && git commit -a

which gives a bunch of directories which contain tracked contents. Doing
"git status" makes the problem go away, but then doing this makes it
come back:

  $ rm .git/index
  $ git read-tree --reset HEAD

And like you, it doesn't trigger with "-uall".

So it is something about:

  1. A fresh index that is perhaps missing stat information for some
     entries.

  2. Stopping the traversal at the directory boundary rather than
     looking at details of each directory ("-uall").

  3. core.ignorecase

But it is definitely repeatable. Which is good, because that will make
it easier to track down. :)

I'll see what I can do, but it may not be today.

-Peff

  reply	other threads:[~2011-05-16 14:55 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-15  0:46 git commit -a reports untracked files after a clone Philipp Metzler
2011-05-15  3:43 ` Junio C Hamano
2011-05-15  8:26   ` Philipp Metzler
2011-05-16 10:38     ` Jeff King
2011-05-16 10:49       ` Philipp Metzler
2011-05-16 12:08         ` Jeff King
2011-05-16 12:25           ` Philipp Metzler
2011-05-16 12:38           ` Philipp Metzler
2011-05-16 14:55             ` Jeff King [this message]
2011-05-27 18:00               ` Jeff King
2011-05-27 18:13                 ` Jeff King
2011-10-05 14:26                   ` Joerg Rosenkranz
2011-10-06 16:06                     ` Jeff King

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=20110516145535.GA25930@sigill.intra.peff.net \
    --to=peff@peff.net \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=phil@goli.at \
    /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).