mviewer / mviewerstudio

mviewer generator
GNU General Public License v3.0
12 stars 26 forks source link

git clone on Windows does not work - Main.js #281

Open bchartier opened 7 months ago

bchartier commented 7 months ago

Due to the presence of two "main.js" files in the same directory (one with an uppercase M) the git clone command on Windows encounters an error:

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:

  'lib/template-generator/Main.js'
  'lib/template-generator/main.js'
Gaetanbrl commented 7 months ago

Additional knowledge :

https://stackoverflow.com/questions/1793735/change-case-of-a-file-on-windows

Gaetanbrl commented 7 months ago

Need fix -> for Windows only

bchartier commented 7 months ago

I discovered this pre-commit hook tool that can help prevent this kind of error: https://github.com/pre-commit/pre-commit-hooks#check-case-conflict

Gaetanbrl commented 7 months ago

Last fix don't fix this issue ? So, need pre-commit ?