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?
I hate to be that guy, but I solved this by restarting Windows.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With