Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Private Git repo - freezes at pulling

I just setup git on my linux server and configured SSH - I want to create private repository to work with my friends. When I'm pulling or cloning that repo everything works fine (LAN), but when my friend tries pull or clone it (over Internet), git hangs at:

remote: Compressing objects: x

where x is always lower than 17%.

What's wrong with it or how could I fix it?

PS: I not using gitosis, I initialized that remote repo with: git --bare init.

Thanks in advance.

Update:

The results commands:

$ cat .git/config

[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
hideDotFiles = dotGitOnly
[remote "origin"]
url = ssh://git@server:port/~/repo_name.git
fetch = +refs/heads/*:refs/remotes/origin/*

 

$ git fetch -v
Enter passphare for key '/c/Users/dev/.ssh/id_rsa':
remote: Counting objects: 76, done.
remote: Compressing objects: 21% (12/55)

However, when my friend got ZIP with sources and he pushed it, everything worked fine. So he is able to push. I added an empty file and pushed it, he successfully downloaded (pulled) it.

like image 410
Robik Avatar asked Aug 20 '11 10:08

Robik


2 Answers

Get your friend to try:

git fetch -v

If that doesn't give you the answer then get him to do this:

cat .git/config

If your server is secure then update your question to include the output of that command. If it's not secure then change the IP and other identifying details to a fake IP and fake details, but try not to alter anything else as you may end up providing misleading info.


Edit based on update:

The url should start with "ssh://" not "ssh/". Although I'm about to go double check that.

like image 79
Gerry Avatar answered Oct 21 '22 20:10

Gerry


If Git push/pull freeze using a config that previously worked, try restarting the computer.

It sounds strange yet I have experienced this on Windows and Linux.

like image 43
Eddie Avatar answered Oct 21 '22 18:10

Eddie