{"thread":{"id":"45854","subject":"Git checkout issue - deleting file without apparent reason","startedAt":"2017-05-03T01:33:09Z","lastAt":"2017-05-03T01:49:46Z","messageCount":3,"participants":["Paul van Wichen","Bryan Turner","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"318597","messageId":"CAK6FQHcHxwCgzGFCnV_3wvX-sVvL8cHpZH11x6ffbzxUJTTGCQ@mail.gmail.com","threadId":"45854","inReplyTo":null,"subject":"Git checkout issue - deleting file without apparent reason","fromName":"Paul van Wichen","fromEmail":"paul.vanwichen@cloudcheckr.com","sentAt":"2017-05-03T01:33:02Z","receivedAt":"2017-05-03T01:33:09Z","isPatch":false,"sender":{"key":"paul.vanwichen@cloudcheckr.com","avatar":null},"body":"Hi,\n\nWe are having a strange issue that we haven't been able to pin down.\nScenario: master branch and feature branch both have a specific file.\n1. Master checked out.\n2. git status show no changes / clean staging area.\n3. Checkout feature branch .\n4. git status show no changes / clean staging area.\n5. Checkout master again.\n6. git status shows that a file has been deleted (i.e. the file was\nremoved from the file system and the staging area shows it as\ndeleted).\n\nThe file exists in both the feature branch and the master branch. As\nbest as we can tell, the file is identical on both commits.\nThe issue occurs on multiple platforms - tested on Windows and OS X.\nIt only occurs for 1 specific file.\n\nBased on the activity of the file, nothing stands out as unusual.\n\nHow we go about troubleshooting this and determining the cause?\n\nThanks,\nPaul van Wichen.\n"},{"id":"318598","messageId":"CAGyf7-GfY7EEi80N-GjuZ4Pg7h1ooRNQ9YPvNayBZdFr8+kuEw@mail.gmail.com","threadId":"45854","inReplyTo":"CAK6FQHcHxwCgzGFCnV_3wvX-sVvL8cHpZH11x6ffbzxUJTTGCQ@mail.gmail.com","subject":"Re: Git checkout issue - deleting file without apparent reason","fromName":"Bryan Turner","fromEmail":"bturner@atlassian.com","sentAt":"2017-05-03T01:49:20Z","receivedAt":"2017-05-03T01:49:27Z","isPatch":false,"sender":{"key":"bturner@atlassian.com","avatar":"https://gravatar.com/avatar/16bcf3167981c1ef7c804e502642366d888a35b0d0b0a4ca01fdc442aa1acb1e?d=mp&s=160"},"body":"On Tue, May 2, 2017 at 6:33 PM, Paul van Wichen\n<paul.vanwichen@cloudcheckr.com> wrote:\n> Hi,\n>\n> We are having a strange issue that we haven't been able to pin down.\n> Scenario: master branch and feature branch both have a specific file.\n> 1. Master checked out.\n> 2. git status show no changes / clean staging area.\n> 3. Checkout feature branch .\n> 4. git status show no changes / clean staging area.\n> 5. Checkout master again.\n> 6. git status shows that a file has been deleted (i.e. the file was\n> removed from the file system and the staging area shows it as\n> deleted).\n>\n> The file exists in both the feature branch and the master branch. As\n> best as we can tell, the file is identical on both commits.\n> The issue occurs on multiple platforms - tested on Windows and OS X.\n> It only occurs for 1 specific file.\n>\n> Based on the activity of the file, nothing stands out as unusual.\n>\n> How we go about troubleshooting this and determining the cause?\n>\n> Thanks,\n> Paul van Wichen.\n"},{"id":"318599","messageId":"20170503014936.emvtrb4edbvauzqc@sigill.intra.peff.net","threadId":"45854","inReplyTo":"CAK6FQHcHxwCgzGFCnV_3wvX-sVvL8cHpZH11x6ffbzxUJTTGCQ@mail.gmail.com","subject":"Re: Git checkout issue - deleting file without apparent reason","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2017-05-03T01:49:36Z","receivedAt":"2017-05-03T01:49:46Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Tue, May 02, 2017 at 09:33:02PM -0400, Paul van Wichen wrote:\n\n> We are having a strange issue that we haven't been able to pin down.\n> Scenario: master branch and feature branch both have a specific file.\n> 1. Master checked out.\n> 2. git status show no changes / clean staging area.\n> 3. Checkout feature branch .\n> 4. git status show no changes / clean staging area.\n> 5. Checkout master again.\n> 6. git status shows that a file has been deleted (i.e. the file was\n> removed from the file system and the staging area shows it as\n> deleted).\n> \n> The file exists in both the feature branch and the master branch. As\n> best as we can tell, the file is identical on both commits.\n> The issue occurs on multiple platforms - tested on Windows and OS X.\n> It only occurs for 1 specific file.\n\nJust a guess, but might there be another file in the repository whose\nname differs only in case? On a case-insensitive filesystem that can\ncause gremlins like this, because the filesystem cannot represent all of\nthe states in the git tree.\n\n-Peff\n"}]}