Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git update-git-for-windows command fails with "curl: (43) A libcurl function was given a bad argument"

Tags:

git

windows

When I run git update-git-for-windows command on my command prompt, it gives the following error:

git update-git-for-windows
Git for Windows 2.45.2.windows.1 (64-bit)
Update 2.47.0.windows.2 is available
curl: (43) A libcurl function was given a bad argument

I even tried running the command prompt as administrator but it gave the same error output.

like image 643
Varun V Gowda Avatar asked Feb 13 '26 08:02

Varun V Gowda


1 Answers

This is an issue with curl in this specific Git release.

You have to update to a newer version manually:
https://github.com/curl/curl/issues/13845#issuecomment-2453436283

I had the same issue with version 8.8.0 which was part of a Git client version. Updating to a newer Git client version installed a newer curl version 8.10.1 which does not have the issue. The problem was in combination with -w and https:// in my case. http:// targets worked. And this sounds like the issue referenced already in this thread with a fix in 8.9.0. The solution is to update to a later Git client in my case.

like image 88
montonero Avatar answered Feb 15 '26 22:02

montonero