Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git pull fails with "Either the application has not called WSAStartup, or WSAStartup failed"

I have just installed Windows 10, Visual Studio Community 2015, and Git for Windows. I also installed the latest Bitbucket and GitHub extensions.

Within Visual Studio I cloned my Bitbucket.com-hosted repository, and performed these operations successfully:

$ git --version
git version 2.19.2.windows.1

$ git pull
Already up to date.

But then when I tried to pull from another repository I got this error:

$ git pull git://github.com/aegif/CmisSync.git
fatal: unable to lookup github.com (port 9418) (Either the application has not called WSAStartup, or WSAStartup failed. )

I am able to ping github.com though.

How can I investigate and fix the problem?

like image 301
Nicolas Raoul Avatar asked Nov 26 '18 08:11

Nicolas Raoul


2 Answers

For those who can't edit the URL, downgrading git to the previous version appears to work.

This seems to be an issue with git version 2.19.2.windows.1

like image 115
zwelz Avatar answered Sep 28 '22 08:09

zwelz


A low-tech workaround is to replace git:// with https:// in the URL.
The command then goes smoothly.

Warnings:

  • It only works read-only, so if you might want to push to the repository any time in the future then use PhillyAI's solution instead.
  • Please note that while it currently works with GitHub, this trick might not work with other Git servers.
like image 31
Nicolas Raoul Avatar answered Sep 28 '22 09:09

Nicolas Raoul