# Two consecutive clones of a remote produces different files

3 messages from 2016-07-15 to 2016-07-15. Participants: Morten W. J., Jeff King.
Thread: https://gitlist.dev/t/42855

## Morten W. J., 2016-07-15 08:45

Subject: Two consecutive clones of a remote produces different files
Message-ID: <2183637.OVprKRVBmt@t430>
URL: https://gitlist.dev/e/2183637.OVprKRVBmt%40t430

```
Hi All.

I have experienced something weird today. 

I have a repository hosted on a GitLab server on my LAN and when I clone that 
repository to a linux box and a windows box I get different files!

It is very hard to explain in words, so I have recorded my desktop while 
reproducing it, which I can do consistently:

https://dl.dropboxusercontent.com/u/5234017/git-clone-produces-different-results.ogv

I have no ideas what is wrong or why it behaves the way it does, but I am 
actually pretty scared now. The repository has been updated from as a subtree 
from another repository, but that should not create such behavior?

Can anybody give me some hints on what may be wrong and how I might get 
identical clones again?


Cheers,
    Morten

```

## Jeff King, 2016-07-15 09:42

Subject: Re: Two consecutive clones of a remote produces different files
Message-ID: <20160715094200.GA17917@sigill.intra.peff.net>
URL: https://gitlist.dev/e/20160715094200.GA17917%40sigill.intra.peff.net
In-Reply-To: <2183637.OVprKRVBmt@t430>

```
On Fri, Jul 15, 2016 at 10:45:47AM +0200, Morten W. J. wrote:

> I have a repository hosted on a GitLab server on my LAN and when I clone that 
> repository to a linux box and a windows box I get different files!
> 
> It is very hard to explain in words, so I have recorded my desktop while 
> reproducing it, which I can do consistently:
> 
> https://dl.dropboxusercontent.com/u/5234017/git-clone-produces-different-results.ogv
> 
> I have no ideas what is wrong or why it behaves the way it does, but I am 
> actually pretty scared now. The repository has been updated from as a subtree 
> from another repository, but that should not create such behavior?

Just a blind guess, but might you have two files with names that differ
only in case, and on Windows one is overwriting the other because you
have a case-insensitive filesystem?

Try:

  git ls-files -s | grep -i src/LogEventSubscriber.h

to see what is in the index (which is case-sensitive, and is the source
from which git checks the files out into the working tree).

-Peff

```

## Morten W. J., 2016-07-15 18:16

Subject: [SOLVED] Re: Two consecutive clones of a remote produces different files
Message-ID: <3779136.PWlxYSPs5e@t430>
URL: https://gitlist.dev/e/3779136.PWlxYSPs5e%40t430
In-Reply-To: <20160715094200.GA17917@sigill.intra.peff.net>

```
Hi Jeff.

Hmmm. You are the master of blind guessing - spot on.
Also, that is kind of embaressing to me. However, should your way cross mine, 
you hereby have a voucer for a drink after your choice as long as it is beer.

Thanks,
   Morten.

> Just a blind guess, but might you have two files with names that differ
> only in case, and on Windows one is overwriting the other because you
> have a case-insensitive filesystem?
> 
> Try:
> 
>   git ls-files -s | grep -i src/LogEventSubscriber.h
> 
> to see what is in the index (which is case-sensitive, and is the source
> from which git checks the files out into the working tree).
> 
> -Peff


```
