Git: can not fetch from git://

Created on 23 Nov 2018  路  9Comments  路  Source: git-for-windows/git

  • [鉁揮 I was not able to find an open or closed issue matching what I'm seeing

Setup

  • Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
$ git --version --build-options
git version 2.19.2.windows.1
cpu: x86_64
built from commit: 26dcaa1b6b5fd862db3ec40983e33ff3432f1166
sizeof-long: 4
sizeof-size_t: 8
  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
$ cmd.exe /c ver

Microsoft Windows [Version 6.1.7601]
  • What options did you set as part of the installation? Or did you choose the
    defaults?
# One of the following:
> type "C:\Program Files\Git\etc\install-options.txt"
> type "C:\Program Files (x86)\Git\etc\install-options.txt"
> type "%USERPROFILE%\AppData\Local\Programs\Git\etc\install-options.txt"
$ cat /etc/install-options.txt
Editor Option: VIM
Custom Editor Path:
Path Option: Cmd
SSH Option: OpenSSH
CURL Option: OpenSSL
CRLF Option: CRLFAlways
Bash Terminal Option: MinTTY
Performance Tweaks FSCache: Enabled
Use Credential Manager: Enabled
Enable Symlinks: Disabled
  • Any other interesting things about your environment that might be related
    to the issue you're seeing?

Works on the same system with git 2.19.1 without issues.

Details

  • Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other

git bash

$ git clone git://github.com/git/git.git
Cloning into 'git'...
fatal: unable to look up github.com (port 9418) (Die Anwendung hat die Funktion WSAStartup nicht aufgerufen, oder bei dieser Funktion ist ein Fehler aufgetreten. )
  • What did you expect to occur after running these commands?

Git should clone the repository.

  • What actually happened instead?

Git gives an error message. No DNS lookup is performed.

  • If the problem was occurring with a specific repository, can you provide the
    URL to that repository to help us with testing?

git://github.com/git/git.git or any repository accessible via git protocol.

All 9 comments

Same here, no issues on 2.19.1

@eworm-de @zvin when https://git-for-windows.visualstudio.com/git/_build/results?buildId=25703&view=logs is done, hopefully there will be a new snapshot at https://wingit.blob.core.windows.net/files/index.html. I would like both of you to test that snapshot to verify the fix.

That was quick! Waiting for the build...

Looks good, thanks a lot!

Fixed for mee too, thanks @dscho !

While waiting for next release or install nightly build, you may temporarily add this to your ~/.gitconfig

[url "https://"]
  insteadOf = git://

Would work for my example, but not for my real use case. ;)

Would work for my example, but not for my real use case. ;)

Any particular reason?

Yes, two reasons:

  • The repository is not available via https.
  • The repository is used to deploy files to client machines. I would have to add the configuration for hundreds or thousands of machines.
Was this page helpful?
0 / 5 - 0 ratings

Related issues

michaelblyons picture michaelblyons  路  5Comments

kc22033 picture kc22033  路  4Comments

vocaviking picture vocaviking  路  5Comments

rangka-kacang picture rangka-kacang  路  3Comments

dlk-pavan picture dlk-pavan  路  4Comments