Reocin / obsidian-markdown-formatting-assistant-plugin

This Plugin provides a simple WYSIWYG Editor for Markdown and in addition a command line interface. The command line interface facilitate a faster workflow.
250 stars 28 forks source link

Warning about collided paths when cloning repo on Mac #37

Open claremacrae opened 3 years ago

claremacrae commented 3 years ago

Describe the bug Cloning the repo on Mac gives warnings about colliding file names, on a case-insensitive filesystem.

To Reproduce Steps to reproduce the behavior:

  1. On a Mac, git clone https://github.com/Reocin/obsidian-markdown-formatting-assistant-plugin.git

Expected behavior Repo cloned without warnings

Actual behavior

Cloning into 'obsidian-markdown-formatting-assistant-plugin'...
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:

  'assets/icons/Alpha.svg'
  'assets/icons/alpha.svg'
  'assets/icons/Beta.svg'
  'assets/icons/beta.svg'
  'assets/icons/Chi.svg'
  'assets/icons/chi.svg'
  'assets/icons/Delta.svg'
  'assets/icons/delta.svg'
  'assets/icons/Epsilon.svg'
  'assets/icons/epsilon.svg'
  'assets/icons/Eta.svg'
  'assets/icons/eta.svg'
  'assets/icons/Gamma.svg'
  'assets/icons/gamma.svg'
  'assets/icons/Iota.svg'
  'assets/icons/iota.svg'
  'assets/icons/Kappa.svg'
  'assets/icons/kappa.svg'
  'assets/icons/Lambda.svg'
  'assets/icons/lambda.svg'
  'assets/icons/My.svg'
  'assets/icons/my.svg'
  'assets/icons/Ny.svg'
  'assets/icons/ny.svg'
  'assets/icons/Omega.svg'
  'assets/icons/omega.svg'
  'assets/icons/Omikron.svg'
  'assets/icons/omikron.svg'
  'assets/icons/Phi.svg'
  'assets/icons/phi.svg'
  'assets/icons/Pi.svg'
  'assets/icons/pi.svg'
  'assets/icons/Psi.svg'
  'assets/icons/psi.svg'
  'assets/icons/Rho.svg'
  'assets/icons/rho.svg'
  'assets/icons/Sigma.svg'
  'assets/icons/sigma.svg'
  'assets/icons/Tau.svg'
  'assets/icons/tau.svg'
  'assets/icons/Theta.svg'
  'assets/icons/theta.svg'
  'assets/icons/Xi.svg'
  'assets/icons/xi.svg'
  'assets/icons/Ypsilon.svg'
  'assets/icons/ypsilon.svg'
  'assets/icons/Zeta.svg'
  'assets/icons/zeta.svg'

Desktop (please complete the following information):

claremacrae commented 3 years ago

I thought this only mattered at cloning, but it also results in git and IDEs "wrongly" showing the files as modified:

➜  icons git:(main) ✗ git status .
On branch main
Your branch is up to date with 'origin/main'.

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:   Alpha.svg
        modified:   Beta.svg
        modified:   Chi.svg
        modified:   Delta.svg
        modified:   Epsilon.svg
        modified:   Eta.svg
        modified:   Gamma.svg
        modified:   Iota.svg
        modified:   Kappa.svg
        modified:   Lambda.svg
        modified:   My.svg
        modified:   Ny.svg
        modified:   Omega.svg
        modified:   Omikron.svg
        modified:   Phi.svg
        modified:   Pi.svg
        modified:   Psi.svg
        modified:   Rho.svg
        modified:   Sigma.svg
        modified:   Tau.svg
        modified:   Theta.svg
        modified:   Xi.svg
        modified:   Ypsilon.svg
        modified:   Zeta.svg