{"thread":{"id":"33971","subject":"Git status reports untracked on tracked files","startedAt":"2013-05-29T08:40:56Z","lastAt":"2013-06-04T16:39:18Z","messageCount":4,"participants":["Andrey Kiyanovsky","Jeff King","Karsten Blees"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"218789","messageId":"CAO-zUnh4018FSnsXzX4gLw-4AnWsKgEiZ5P4pktjxNokargQwA@mail.gmail.com","threadId":"33971","inReplyTo":null,"subject":"Git status reports untracked on tracked files","fromName":"Andrey Kiyanovsky","fromEmail":"andrey.kiyanovsky@gmail.com","sentAt":"2013-05-29T08:40:56Z","receivedAt":"2013-05-29T08:40:56Z","isPatch":false,"sender":{"key":"andrey.kiyanovsky@gmail.com","avatar":null},"body":"I would be grateful for any thoughts about the follow problem.\n\nGit status reports untracked files:\n\n    $ git status\n    # On branch master\n    # Untracked files:\n    #   (use \"git add <file>...\" to include in what will be committed)\n    #\n    # resource.enlighten/map/enlighten_test/.enlighten/__build_object__/geometry/land_9/processed/\n    nothing added to commit but untracked files present (use \"git add\" to track)\n\nBut we have files at this directory at index:\n\n    $ git ls-tree -r HEAD |grep land_9/processed/root.pim\n    100644 blob 9eeca5c75dc2c945600b6e0d253a8cb8191b7e80\nresource.enlighten/map/enlighten_test/.enlighten/__build_object__/geometry/land_9/processed/root.pim\n\nI have checked this error appear after the first commit, that added this file.\n\nI have tried:\n\n1. Clone repo.\n2. Clean/Checkout file (as described at this [1] article) - after\ncheckout status is untracked.\n3. Copy full directory resource.enlighten/ to another repo and add\ncommit - no errors.\n4. Run git fsck - no errors.\n\nGit version 1.8.1.2. for Windows\n\nGit config:\n\n[core]\n\trepositoryformatversion = 0\n\tfilemode = false\n\tbare = false\n\tlogallrefupdates = true\n\tsymlinks = false\n\tignorecase = true\n\thideDotFiles = dotGitOnly\n\tcompression = 1\n\nThank you in advance.\n\n[1] http://stackoverflow.com/questions/11525358/git-untracked-files-list-is-wrong\n"},{"id":"219310","messageId":"20130603222618.GA26180@sigill.intra.peff.net","threadId":"33971","inReplyTo":"CAO-zUnh4018FSnsXzX4gLw-4AnWsKgEiZ5P4pktjxNokargQwA@mail.gmail.com","subject":"Re: Git status reports untracked on tracked files","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2013-06-03T22:26:18Z","receivedAt":"2013-06-03T22:26:18Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Wed, May 29, 2013 at 11:40:56AM +0300, Andrey Kiyanovsky wrote:\n\n> Git version 1.8.1.2. for Windows\n> \n> Git config:\n> \n> [core]\n> \trepositoryformatversion = 0\n> \tfilemode = false\n> \tbare = false\n> \tlogallrefupdates = true\n> \tsymlinks = false\n> \tignorecase = true\n> \thideDotFiles = dotGitOnly\n> \tcompression = 1\n\nIn the past there have been some problems with status listings of\nuntracked files when core.ignorecase is in use. I fixed some cases with\na commit that went into v1.7.8, but some problems remained. Karsten\nBlees (cc'd) did some work that went into git v1.8.1.6, but I do not\nknow off-hand if it would fix your case or not.\n\nCan you try with a more recent version of git?\n\n-Peff\n"},{"id":"219340","messageId":"CAO-zUniGNqxLJ9JrRMtfGF7O52sQsrGBoh0HJf+zh0czwt7ETQ@mail.gmail.com","threadId":"33971","inReplyTo":"20130603222618.GA26180@sigill.intra.peff.net","subject":"Re: Git status reports untracked on tracked files","fromName":"Andrey Kiyanovsky","fromEmail":"andrey.kiyanovsky@gmail.com","sentAt":"2013-06-04T09:05:45Z","receivedAt":"2013-06-04T09:05:45Z","isPatch":false,"sender":{"key":"andrey.kiyanovsky@gmail.com","avatar":null},"body":"I have tried Git 1.8.3 for Windows. Case is fixed. Thank you very much!\n\n2013/6/4 Jeff King <peff@peff.net>:\n> On Wed, May 29, 2013 at 11:40:56AM +0300, Andrey Kiyanovsky wrote:\n>\n>> Git version 1.8.1.2. for Windows\n>>\n>> Git config:\n>>\n>> [core]\n>>       repositoryformatversion = 0\n>>       filemode = false\n>>       bare = false\n>>       logallrefupdates = true\n>>       symlinks = false\n>>       ignorecase = true\n>>       hideDotFiles = dotGitOnly\n>>       compression = 1\n>\n> In the past there have been some problems with status listings of\n> untracked files when core.ignorecase is in use. I fixed some cases with\n> a commit that went into v1.7.8, but some problems remained. Karsten\n> Blees (cc'd) did some work that went into git v1.8.1.6, but I do not\n> know off-hand if it would fix your case or not.\n>\n> Can you try with a more recent version of git?\n>\n> -Peff\n"},{"id":"219379","messageId":"51AE1836.7060701@gmail.com","threadId":"33971","inReplyTo":"CAO-zUniGNqxLJ9JrRMtfGF7O52sQsrGBoh0HJf+zh0czwt7ETQ@mail.gmail.com","subject":"Re: Git status reports untracked on tracked files","fromName":"Karsten Blees","fromEmail":"karsten.blees@gmail.com","sentAt":"2013-06-04T16:39:18Z","receivedAt":"2013-06-04T16:39:18Z","isPatch":false,"sender":{"key":"karsten.blees@gmail.com","avatar":"https://avatars.githubusercontent.com/u/1111200?v=4"},"body":"Am 04.06.2013 11:05, schrieb Andrey Kiyanovsky:\n> I have tried Git 1.8.3 for Windows. Case is fixed. Thank you very much!\n> \n> 2013/6/4 Jeff King <peff@peff.net>:\n>> On Wed, May 29, 2013 at 11:40:56AM +0300, Andrey Kiyanovsky wrote:\n>>\n>>> Git version 1.8.1.2. for Windows\n>>>\n>>> Git config:\n>>>\n>>> [core]\n>>>       repositoryformatversion = 0\n>>>       filemode = false\n>>>       bare = false\n>>>       logallrefupdates = true\n>>>       symlinks = false\n>>>       ignorecase = true\n>>>       hideDotFiles = dotGitOnly\n>>>       compression = 1\n>>\n>> In the past there have been some problems with status listings of\n>> untracked files when core.ignorecase is in use. I fixed some cases with\n>> a commit that went into v1.7.8, but some problems remained. Karsten\n>> Blees (cc'd) did some work that went into git v1.8.1.6, but I do not\n>> know off-hand if it would fix your case or not.\n>>\n\nYep, the hash collision bug can definitely cause this with ignorecase=true, glad it helped.\n\nAnother case in which Git for Windows will report tracked files as untracked is if you upgrade from < 1.7.10 with non-ASCII file names in the repository. Particularly annoying are hyphens (\\u00ad), which look just like ASCII minus (\\u002d). See [1] for details.\n\n[1] https://github.com/msysgit/msysgit/wiki/Git-for-Windows-Unicode-Support\n"}]}