# bug in os x - deleted file on clone

2 messages from 2014-07-03 to 2014-07-03. Participants: David Salib, Jeff King.
Thread: https://gitlist.dev/t/37051

## David Salib, 2014-07-03 15:53

Subject: bug in os x - deleted file on clone
Message-ID: <CAG+Rngi4q_Se0dGUKLuSEmub=srrhtDNfEh5n977DL+XZxJjsQ@mail.gmail.com>
URL: https://gitlist.dev/e/CAG%2BRngi4q_Se0dGUKLuSEmub%3DsrrhtDNfEh5n977DL%2BXZxJjsQ%40mail.gmail.com

```
Hello,

When I clone a repository using git on osx this happens :

------------

grandmesse:code dubbed$ git clone ssh://git@[snip]/puppet.git
Cloning into 'puppet'...
remote: Counting objects: 5313, done.
remote: Compressing objects: 100% (4086/4086), done.
remote: Total 5313 (delta 2200), reused 2996 (delta 841)
Receiving objects: 100% (5313/5313), 2.07 MiB | 0 bytes/s, done.
Resolving deltas: 100% (2200/2200), done.
Checking connectivity... done.
grandmesse:code dubbed$ cd puppet
grandmesse:puppet dubbed$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
  (use "git add/rm <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)
deleted:    modules/areversat-nidautoprov/files/dhcp/staticDHCPd/staticDHCPd
no changes added to commit (use "git add" and/or "git commit -a")

-----------------

This does not happen under linux so the repository isn't the issue.

Thanks,

D


-- 
David Salib
Spécialiste systèmes / Systems specialist
Fibrenoire - www.fibrenoire.ca
A: 550 ave Beaumont, suite 320, Montreal, Qc, H3N 1V1
T. 514 907-3002 x133

```

## Jeff King, 2014-07-03 16:42

Subject: Re: bug in os x - deleted file on clone
Message-ID: <20140703164250.GA20571@sigill.intra.peff.net>
URL: https://gitlist.dev/e/20140703164250.GA20571%40sigill.intra.peff.net
In-Reply-To: <CAG+Rngi4q_Se0dGUKLuSEmub=srrhtDNfEh5n977DL+XZxJjsQ@mail.gmail.com>

```
On Thu, Jul 03, 2014 at 11:53:28AM -0400, David Salib wrote:

> When I clone a repository using git on osx this happens :
> [...]
> deleted:    modules/areversat-nidautoprov/files/dhcp/staticDHCPd/staticDHCPd
> [...]
> This does not happen under linux so the repository isn't the issue.

Does the repository have similar paths distinguished only by case? Try
looking at the output of:

  git ls-tree HEAD

If your file system is case-insensitive, then it might not be possible
to represent the repository contents on disk (git has some workarounds
to handle case-insensitivty, but fundamentally such filesystems cannot
represent "FOO" and "foo" with different contents, and you are best off
not trying to store that in your repository).

-Peff

```
