Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git init: fatal: could not set 'core.filemode' to 'false'

Using Team City to check out from a Git Repo. (Gitlabs if it matters)

Start with Empty build directory. Get this error:

fatal: could not set 'core.filemode' to 'false'

(Running on a Windows machine, if that matters)

The user that Team City is running on was changed to an Admin just in case.

The .Git directory is not a valid Repo when this command exits.

Wiping the entire 'work' directory doesn't help.

It randomly comes and goes...

AND this: git config --global --replace-all core.fileMode false

Does nothing useful - with or without the --replace-all, and run as admin, or another user (if you change 'false' to 'true' you get the same error, if you change it to 'falseCD' it changes the error to that being an invalid value - so clearly, it is changing it.

Anyone got any ideas?

like image 694
Traderhut Games Avatar asked Apr 30 '18 21:04

Traderhut Games


1 Answers

I hate to be that guy, but I solved this by restarting Windows.

like image 177
Blairg23 Avatar answered Nov 15 '22 23:11

Blairg23