Closed
Description
Describe the bug
Using west and Git on Windows worked fine up until Git 2.23 (included).
When running west update
using Git 2.24 on Windows, you get:
fatal: filename in tree entry contains backslash: '\'
error: https://github.com/zephyrproject-rtos/civetweb did not send all necessary objects
To Reproduce
On Windows, and with Git 2.24:
west init zephyr
cd zephyr
west update
Additional Context
- Git commit that introduced the issue: git/git@e1d911d
- Potential civetweb commit with the issue: zephyrproject-rtos/civetweb@4ac467e
- Civetweb issue: Error when cloning on Windows with Git 2.24: filename in tree entry contains backslash -- solved in Git 2.25 civetweb/civetweb#812
- Git for Windows issue: Git 2.24 breaks existing repositories: filename in tree entry contains backslash git-for-windows/git#2435
Workarounds
-
Disable core.protectNTFS:
git config --global core.protectNTFS false
-
Update to Git 2.25
Environment (please complete the following information):
- OS: Windows
- Git for Windows 2.24
- Commit: civetweb 99129c5efc907ea613c4b73ccff07581feb58a7a