Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 295331

Summary: [git] fatal error when pulling from a git repo
Product: Community Reporter: Tomasz Zarna <tomasz.zarna>
Component: ServersAssignee: Eclipse Webmaster <webmaster>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Tomasz Zarna CLA 2009-11-17 06:50:01 EST
Some time ago I have git-cloned couple of projects (bug 280583 comment 140). Today I wanted to sync one of them with changes committed to CVS HEAD, so I went to org.eclipse.team.ui and made sure I have a remote I can fetch/pull changes from:
$ git remote -v
origin	git://dev.eclipse.org/org.eclipse.team/org.eclipse.team.ui.git (fetch)
origin	git://dev.eclipse.org/org.eclipse.team/org.eclipse.team.ui.git (push)

Since 'git fetch' gave no visible result I typed:
$ git pull origin
and this is what I received:
dev.eclipse.org[0: 206.191.52.50]: errno=No such file or directory
fatal: unable to connect a socket (No such file or directory)

I'm a newbie to git and most probably I did something wrong but so far I've had no problems working (locally) with the cloned projects.

I'm using Msysgit 1.6.5.1.1367.gcd48
Comment 1 Denis Roy CLA 2009-11-18 09:59:43 EST
git was not part of our high-priority bandwidth, so that would explain why you would have experienced a timeout.  Can you please try again?
Comment 2 Tomasz Zarna CLA 2009-11-19 07:19:09 EST
Thinks, it works now. At least I don't get the "fatal error" message but I'm still not able to fetch/pull changes from origin:
a) "git fetch" gave no message at all
b) "git pull origin" resulted in "Already up-to-date" message, which is not true. I'm still missing the last change in /org.eclipse.team.ui/src/org/eclipse/team/internal/ui/messages.properties made on 2009-11-06 (CVS rev 1.254). And what I have in my master branch is rev 1.253 (in terms of CVS).
c) so I tried to be more specific and typed "git pull origin master:HEAD" but this gave the same "up-to-date" message.

Am I doing something wrong? How often are git repos sync'ed with CVS HEAD? As far as I remember they were supposed to be at most 24hrs late (but I might have made it up)
Comment 3 Denis Roy CLA 2009-11-19 11:43:21 EST
I just ran the git cvsimport manually for the repository, and it picked up the new change (and the new tag).  I then saw the incoming diff with git fetch, since I too had git cloned a few days ago:

droy@mthood:~/gits/org.eclipse.team.ui> git fetch
remote: Counting objects: 17, done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 9 (delta 3), reused 0 (delta 0)
Unpacking objects: 100% (9/9), done.
From git://dev.eclipse.org/org.eclipse.team/org.eclipse.team.ui
   895c8d7..08c61fd  origin     -> origin/origin
 * [new tag]         I20091117-0800 -> I20091117-0800

I'll investigate why the import script didn't pick it up automatically.
Comment 4 Tomasz Zarna CLA 2009-11-23 06:55:18 EST
It worked today for org.eclipse.team.ui, "git fetch" gave the same result as in comment 3. But when I wanted to fetch changes for other projects (started with org.eclipse.team.cvs.ui which has a change in GenerateDiffFileWizard.java made on 2009-11-05) I got the same response as in comment 2 i.e. no message.
Comment 5 Denis Roy CLA 2009-11-23 10:29:03 EST
Each Eclipse top-level project is imported by its own script; for some reason the Eclipse script is stopping midway, without leaving an error.  I'll look into this.
Comment 6 Denis Roy CLA 2009-11-24 10:03:29 EST
There were a few empty CVS modules, and apparently the git import process can't deal with that.  I've set the script to ignore empty modules, and I've run the importer again.  There were a ton of incoming changes, so everything should be all good now. Can you give it a try?
Comment 7 Tomasz Zarna CLA 2009-11-30 05:41:12 EST
I have fetched and merged couple of projects this morning, seems to be working fine. Thx.