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 08:08:25 -0400	[thread overview]
Message-ID: <20110516120825.GA24418@sigill.intra.peff.net> (raw)
In-Reply-To: <7C2AE1EE-4CAE-4E86-A53C-C97BE1F2573B@goli.at>

On Mon, May 16, 2011 at 12:49:07PM +0200, Philipp Metzler wrote:

> [phil@Silberpfeil git]$ git commit -uall
> # On branch master
> nothing to commit (working directory clean)

Hmm, nothing. That's odd.

> [phil@Silberpfeil git]$ git commit -a
> # On branch master
> # Untracked files:
> #   (use "git add <file>..." to include in what will be committed)
> #
> #	t/t9154/
> #	t/t9601/
> #	t/t9602/
> #	t/t9603/
> #	t/t9700/
> #	t/valgrind/
> #	templates/
> #	vcs-svn/
> #	xdiff/
> nothing added to commit but untracked files present (use "git add" to track)

And now totally different output from before, and from the previous run.

So this is really strange. The fact that the list of directories is
_different_ from your previous posting implies to me that it is not
something about those particular files, but rather some weird race
condition in the creation of those directories or the index.

But then the fact that we see them with no "-u", but don't see them with
"-uall" implies some weird heisenbug in git's directory traversal. What
happens if you do "git commit --all -uall"? I'd like to see if the thing
that switches the behavior is the presence of "--all" or the absence of
a "-u" option.

-Peff

  reply	other threads:[~2011-05-16 12:08 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 [this message]
2011-05-16 12:25           ` Philipp Metzler
2011-05-16 12:38           ` Philipp Metzler
2011-05-16 14:55             ` Jeff King
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=20110516120825.GA24418@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).