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

git-push hangs when pushing to remote hosted with git-daemon (git://) #2328

Closed
kokostek opened this issue Sep 12, 2019 · 1 comment
Closed

Comments

@kokostek
Copy link

kokostek commented Sep 12, 2019

Remote repository and git-daemon

The remote can be either linux or windows machine - Git for Windows is unable to push to both.

mkdir git-srv
cd git-srv
git init --bare some-repo.git
git daemon --export-all --base-path=. --verbose --enable="receive-pack" .

Local repository

Here are the steps I run on Windows 10 machine with Git for Windows from git bash.

git init some-repo
cd some-repo
echo "Hello World!" > test.txt
git add .
git commit -m "initial commit"
git remote add origin git://<remote-address>/some-repo.git
git push --set-upstream origin master

The last git push command hangs indefinitely. Although, I am able to fetch and pull from the remote. And if I try to git push from linux machine - it works fine.

Setup

  • Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
$ git --version --build-options
git version 2.23.0.windows.1
cpu: x86_64
built from commit: 4db2e5cc9e1522131a039cbad3970f147a39f0ce
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 10.0.18362.356]
  • What options did you set as part of the installation? Or did you choose the
    defaults?
> type "C:\Program Files\Git\etc\install-options.txt"
Editor Option: VisualStudioCode
Custom Editor Path:
Path Option: Cmd
SSH Option: OpenSSH
Tortoise Option: false
CURL Option: OpenSSL
CRLF Option: CRLFAlways
Bash Terminal Option: MinTTY
Performance Tweaks FSCache: Enabled
Use Credential Manager: Enabled
Enable Symlinks: Disabled
Enable Builtin Interactive Add: Disabled
@dscho
Copy link
Member

dscho commented Sep 13, 2019

Duplicate of #2278

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

No branches or pull requests

2 participants