git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Stéphane Corlosquet" <scorlosquet@gmail.com>
To: git@vger.kernel.org
Subject: Tracked files become untracked in some obscure scenario
Date: Tue, 9 Aug 2011 15:59:08 -0400	[thread overview]
Message-ID: <CAGR+nnFM+Pr29h4POarx5rQdrTuMvtwwZLwVPZuChSDKQjLg4g@mail.gmail.com> (raw)

Hi,

I'm encountering a very strange bug where some directory containing
one file becomes untracked when it should be tracked. I originally
found this bug in a bigger repository, but I isolated the culprit
files into a small tarball which you can download from
http://files.openspring.net/tmp/gitbug-20110809.tgz

This bug occurs on the following three configs:
Mac OS X Snow Leopard with git 1.7.4.1
Mac OS X Snow Leopard with git 1.7.5
Mac OS X Lion with git 1.7.4.4
I could not reproduce on Ubuntu.

To reproduce, extract the tarball and try to add its content into a fresh repo:
$ git init
Initialized empty Git repository in /private/tmp/stemtest/.git/
$ git add .
$ git status
# On branch master
#
# Initial commit
#
# Changes to be committed:
#   (use "git rm --cached <file>..." to unstage)
#
# new file:   drupal/sites/all/modules/scf/pubnode_docbook4/xsl/docbook-xsl-1.73.2/common/olink.xsl
# new file:   files/pubnode/ab4d8c648ef8e26312beaba802a503d1f8081bb6/README
#
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
# files/pubnode/ab4d8c648ef8e26312beaba802a503d1f8081bb6/

From there onwards, if I commit and do other operations, this
directory will remain in the untracked files list. I'm terribly
confused by this bug. It seems it has to do with the paths of both
files, since if I rename them, the bug does not happen. But I can't
explain what's going on.

regards,
Steph.

             reply	other threads:[~2011-08-09 19:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-09 19:59 Stéphane Corlosquet [this message]
2011-08-10  2:51 ` Tracked files become untracked in some obscure scenario 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=CAGR+nnFM+Pr29h4POarx5rQdrTuMvtwwZLwVPZuChSDKQjLg4g@mail.gmail.com \
    --to=scorlosquet@gmail.com \
    --cc=git@vger.kernel.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).