perma-id/w3id.org

warning on clone: case sensitive/insensitive file systems

dfalster opened this issue · 1 comments

Hi team, Thanks for your hard work! I encountered an issue when cloning your repo and thought I'd let you know about it. It's not blocking anything for me, but it's a little confusing so a potential issue for many users.

As background: I'm on a Mac OSX (13.4) using iterm and very comfortable with git. So it's not simply a beginner not knowing what they're doing :)

On cloning, I get a warning (see below) and then the repo immediately has changes present (even though I all I did is clone), which can't be cleaned or resolved with checkout's:

➜  Downloads git clone git@github.com:perma-id/w3id.org.git
Cloning into 'w3id.org'...
remote: Enumerating objects: 27849, done.
remote: Counting objects: 100% (1540/1540), done.
remote: Compressing objects: 100% (906/906), done.
remote: Total 27849 (delta 599), reused 1487 (delta 589), pack-reused 26309
Receiving objects: 100% (27849/27849), 7.82 MiB | 3.56 MiB/s, done.
Resolving deltas: 100% (11260/11260), done.
warning: the following paths have collided (e.g. case-sensitive paths
on a case-insensitive filesystem) and only one from the same
colliding group is in the working tree:

  'AIRO/.htaccess'
  'airo/.htaccess'
  'AIRO/README.md'
  'airo/README.md'

➜  Downloads cd w3id.org

➜  w3id.org git:(master) ✗ git status
On branch master
Your branch is up to date with 'origin/master'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
	modified:   AIRO/.htaccess
	modified:   AIRO/README.md

no changes added to commit (use "git add" and/or "git commit -a")

➜  w3id.org git:(master) ✗ git checkout .
Updated 4 paths from the index
➜  w3id.org git:(master) ✗ git status
On branch master
Your branch is up to date with 'origin/master'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
	modified:   AIRO/.htaccess
	modified:   AIRO/README.md

I suggest resolving this on a machine with case sensitive file system.

We had some open PRs related to this issue that hadn't been merged yet. I think the correct PRs are now merged and this issue should be resolved. If not, please re-open. Thanks.