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

can not fetch from git:// #1949

Closed
eworm-de opened this issue Nov 23, 2018 · 9 comments
Closed

can not fetch from git:// #1949

eworm-de opened this issue Nov 23, 2018 · 9 comments
Assignees
Milestone

Comments

@eworm-de
Copy link

  • [✓] 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.

@zvin
Copy link

zvin commented Nov 23, 2018

Same here, no issues on 2.19.1

@dscho dscho self-assigned this Nov 23, 2018
@dscho dscho added this to the v2.19.2(2) milestone Nov 23, 2018
@dscho dscho closed this as completed in eca28c6 Nov 23, 2018
dscho added a commit to git-for-windows/build-extra that referenced this issue Nov 23, 2018
Git can now [access `git://` remotes
again](git-for-windows/git#1949).

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@dscho
Copy link
Member

dscho commented Nov 23, 2018

@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.

@zvin
Copy link

zvin commented Nov 23, 2018

That was quick! Waiting for the build...

@eworm-de
Copy link
Author

Looks good, thanks a lot!

@zvin
Copy link

zvin commented Nov 23, 2018

Fixed for mee too, thanks @dscho !

dscho added a commit to microsoft/git that referenced this issue Nov 23, 2018
We still need to ensure that sockets are initialized when calling
`getaddrinfo()`, otherwise git:// URLs cannot be accessed.

This fixes git-for-windows#1949.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@linquize
Copy link

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

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

@eworm-de
Copy link
Author

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

@PhilipOakley
Copy link

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

Any particular reason?

@eworm-de
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants