Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

civetweb triggers an error on Windows with Git 2.24 #21426

Closed
carlescufi opened this issue Dec 16, 2019 · 5 comments
Closed

civetweb triggers an error on Windows with Git 2.24 #21426

carlescufi opened this issue Dec 16, 2019 · 5 comments
Assignees
Labels
area: Modules area: West West utility bug The issue is a bug, or the PR is fixing a bug priority: high High impact/importance bug

Comments

@carlescufi
Copy link
Member

carlescufi commented Dec 16, 2019

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

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
@mbolivar
Copy link
Contributor

mbolivar commented Dec 19, 2019

Users on the duplicate issue (#21321) reported the git config --global core.protectNTFS workaround did not work for them.

I would recommend:

  1. applying the git config work around
  2. backing up any local commits, then deleting the civetweb directory (modules/lib/civetweb) entirely
  3. retrying west update

@andrewboie
Copy link
Contributor

A note about this in our documentation would be nice, I tripped over this the other day.

@mbolivar
Copy link
Contributor

mbolivar commented Jan 2, 2020

A note about this in our documentation would be nice, I tripped over this the other day.

The patch fixing it appears to be making its way through review on mainline git and git-for-windows, so hopefully a new version with the fix will be out soon and we can just close this.

edit: the fix is merged. I've tested it and it solves this problem for me with core.protectNTFS enabled. We can look forward to a new git release with the fix within 10 days.

@carlescufi
Copy link
Member Author

Closing this issue. See workarounds in the description

@szundi
Copy link

szundi commented Mar 28, 2020

just a tip: if you get the error with git 2.26+, delete modules/lib/civetweb folder, then retry with west update, this fixed me some bad state

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Modules area: West West utility bug The issue is a bug, or the PR is fixing a bug priority: high High impact/importance bug
Projects
None yet
Development

No branches or pull requests

8 participants