{"thread":{"id":"42855","subject":"Two consecutive clones of a remote produces different files","startedAt":"2016-07-15T08:45:55Z","lastAt":"2016-07-15T18:32:20Z","messageCount":3,"participants":["Morten W. J.","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"291511","messageId":"2183637.OVprKRVBmt@t430","threadId":"42855","inReplyTo":null,"subject":"Two consecutive clones of a remote produces different files","fromName":"Morten W. J.","fromEmail":"morten@winkler.dk","sentAt":"2016-07-15T08:45:47Z","receivedAt":"2016-07-15T08:45:55Z","isPatch":false,"sender":{"key":"morten@winkler.dk","avatar":null},"body":"Hi All.\n\nI have experienced something weird today. \n\nI have a repository hosted on a GitLab server on my LAN and when I clone that \nrepository to a linux box and a windows box I get different files!\n\nIt is very hard to explain in words, so I have recorded my desktop while \nreproducing it, which I can do consistently:\n\nhttps://dl.dropboxusercontent.com/u/5234017/git-clone-produces-different-results.ogv\n\nI have no ideas what is wrong or why it behaves the way it does, but I am \nactually pretty scared now. The repository has been updated from as a subtree \nfrom another repository, but that should not create such behavior?\n\nCan anybody give me some hints on what may be wrong and how I might get \nidentical clones again?\n\n\nCheers,\n    Morten\n"},{"id":"291512","messageId":"20160715094200.GA17917@sigill.intra.peff.net","threadId":"42855","inReplyTo":"2183637.OVprKRVBmt@t430","subject":"Re: Two consecutive clones of a remote produces different files","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2016-07-15T09:42:01Z","receivedAt":"2016-07-15T09:42:10Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Fri, Jul 15, 2016 at 10:45:47AM +0200, Morten W. J. wrote:\n\n> I have a repository hosted on a GitLab server on my LAN and when I clone that \n> repository to a linux box and a windows box I get different files!\n> \n> It is very hard to explain in words, so I have recorded my desktop while \n> reproducing it, which I can do consistently:\n> \n> https://dl.dropboxusercontent.com/u/5234017/git-clone-produces-different-results.ogv\n> \n> I have no ideas what is wrong or why it behaves the way it does, but I am \n> actually pretty scared now. The repository has been updated from as a subtree \n> from another repository, but that should not create such behavior?\n\nJust a blind guess, but might you have two files with names that differ\nonly in case, and on Windows one is overwriting the other because you\nhave a case-insensitive filesystem?\n\nTry:\n\n  git ls-files -s | grep -i src/LogEventSubscriber.h\n\nto see what is in the index (which is case-sensitive, and is the source\nfrom which git checks the files out into the working tree).\n\n-Peff\n"},{"id":"291559","messageId":"3779136.PWlxYSPs5e@t430","threadId":"42855","inReplyTo":"20160715094200.GA17917@sigill.intra.peff.net","subject":"[SOLVED] Re: Two consecutive clones of a remote produces different files","fromName":"Morten W. J.","fromEmail":"morten@winkler.dk","sentAt":"2016-07-15T18:16:00Z","receivedAt":"2016-07-15T18:32:20Z","isPatch":false,"sender":{"key":"morten@winkler.dk","avatar":null},"body":"Hi Jeff.\n\nHmmm. You are the master of blind guessing - spot on.\nAlso, that is kind of embaressing to me. However, should your way cross mine, \nyou hereby have a voucer for a drink after your choice as long as it is beer.\n\nThanks,\n   Morten.\n\n> Just a blind guess, but might you have two files with names that differ\n> only in case, and on Windows one is overwriting the other because you\n> have a case-insensitive filesystem?\n> \n> Try:\n> \n>   git ls-files -s | grep -i src/LogEventSubscriber.h\n> \n> to see what is in the index (which is case-sensitive, and is the source\n> from which git checks the files out into the working tree).\n> \n> -Peff\n\n"}]}