git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: bug in os x - deleted file on clone

From
Jeff King <peff@peff.net>
Date
Jul 3, 2014, 16:42 UTC
Message-ID
<20140703164250.GA20571@sigill.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:
Show 5 quoted lines
> 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
Previous: David Salib
Message 2 of 2 in “bug in os x - deleted file on clone”
  1. David SalibJul 3, 2014
  2. Jeff KingJul 3, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.