{"thread":{"id":"16892","subject":"git clone - failing on cygwin with git:// but not with ssh://","startedAt":"2008-12-27T22:37:59Z","lastAt":"2008-12-30T23:52:59Z","messageCount":3,"participants":["Joe Casadonte","Daniel Barkalow"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"98819","messageId":"ud4fdxn08.fsf@terrapin.northbound-train.com","threadId":"16892","inReplyTo":null,"subject":"git clone - failing on cygwin with git:// but not with ssh://","fromName":"Joe Casadonte","fromEmail":"jcasadonte@northbound-train.com","sentAt":"2008-12-27T22:37:59Z","receivedAt":"2008-12-27T22:37:59Z","isPatch":false,"sender":{"key":"jcasadonte@northbound-train.com","avatar":"https://gravatar.com/avatar/a89b0ae2f21d69901e2773c7ce374a4a1512746fc744fc8a083d1c80b4fbaaf1?d=mp&s=160"},"body":"Hi,\n\nI'm new to git, so my apologies if I'm missing something pretty\nbasic.  Here's my setup:\n\n\"Public\" server\n---------------\nOS: RedHat clone, 2.6.9 kernel\ngit version: self-compiled, 1.6.0.6\n\nTest client #1 (works)\n----------------------\nOS: RedHat clone, 2.6.9 kernel\ngit version: self-compiled, 1.6.0.6\n\nTest client #2 (fails)\n----------------------\nOS: Win XP Pro\ngit version: cygwin compiled, 1.6.0.4\n\nI have a new repository on the \"public\" server, and have cloned it on\ntest client #1 with:\n\n$ git clone git://foobar/myproj.git\nInitialized empty Git repository in /opt/myproj/.git/\nremote: Counting objects: 104, done.\nremote: Compressing objects: 100% (72/72), done.\nremote: Total 104 (delta 22), reused 104 (delta 22)\nReceiving objects: 100% (104/104), 76.97 KiB, done.\nResolving deltas: 100% (22/22), done.\n\n\nI try the same thing on test box #2 and receive:\n\n\nD:\\temp>git clone git://foobar/otminfmyproj.git\nInitialized empty Git repository in /cygdrive/d/temp/foobar/.git/\nfatal: read error (Socket operation on non-socket)\nfatal: early EOF\nfatal: index-pack failed\n\n\nI've turned on verbose logging in the daemon and I see the following\nmessages:\n\nDec 27 17:31:53 foobar git-daemon: [30327] Connection from 192.168.1.102:2598\nDec 27 17:31:53 foobar git-daemon: [30327] Extended attributes (16 bytes) exist <host=foobar>\nDec 27 17:31:53 foobar git-daemon: [30327] Request upload-pack for '/myproj.git'\nDec 27 17:31:55 foobar git-daemon: [30327] Disconnected (with error)\n\nA successful log (from test client #1) shows practically the same\nthing:\n\nDec 27 17:33:22 foobar git-daemon: [30338] Connection from 192.168.2.101:44832\nDec 27 17:33:22 foobar git-daemon: [30338] Extended attributes (16 bytes) exist <host=foobar>\nDec 27 17:33:22 foobar git-daemon: [30338] Request upload-pack for '/myproj.git'\nDec 27 17:33:22 foobar git-daemon: [30338] Disconnected\n\n\nRunning the clone via ssh protocol from test client #2 works, though:\n\n\nD:\\temp>git clone ssh://root@foobar/nfs02/git/myproj\nInitialized empty Git repository in /cygdrive/d/temp/myproj/.git/\nremote: Counting objects: 104, done.\nremote: Compressing objects: 100% (72/72), done.\nremote: Total 104 (delta 22), reused 104 (delta 22)\nReceiving objects: 100% (104/104), 76.97 KiB | 9 KiB/s, done.\nResolving deltas: 100% (22/22), done.\n\n\nThe same test machine has cloned from a different linux server via the\ngit protocol just fine.\n\nAny ideas?  Thanks for the help!\n\n--\nRegards,\n\n\njoe\nJoe Casadonte\njcasadonte@northbound-train.com\n\n------------------------------------------------------------------------------\n         Llama Fresh Farms => http://www.northbound-train.com\n    Ramblings of a Gay Man => http://www.northbound-train.com/ramblings\n               Emacs Stuff => http://www.northbound-train.com/emacs.html\n          Music CD Trading => http://www.northbound-train.com/cdr.html\n------------------------------------------------------------------------------\n                       Live Free, that's the message!\n------------------------------------------------------------------------------\n"},{"id":"98890","messageId":"loom.20081229T145004-85@post.gmane.org","threadId":"16892","inReplyTo":"ud4fdxn08.fsf@terrapin.northbound-train.com","subject":"Re: git clone - failing on cygwin with git:// but not with ssh://","fromName":"Joe Casadonte","fromEmail":"jcasadonte@northbound-train.com","sentAt":"2008-12-29T14:54:35Z","receivedAt":"2008-12-29T14:54:35Z","isPatch":false,"sender":{"key":"jcasadonte@northbound-train.com","avatar":"https://gravatar.com/avatar/a89b0ae2f21d69901e2773c7ce374a4a1512746fc744fc8a083d1c80b4fbaaf1?d=mp&s=160"},"body":"Joe Casadonte <jcasadonte <at> northbound-train.com> writes:\n\n> The same test machine has cloned from a different linux server via the\n> git protocol just fine.\n> \n> Any ideas?  Thanks for the help!\n\nDoes anyone know of more logging I can try to help diagnose the issue?  Despite\nthe SSH work-around, this is really hampering me....\n"},{"id":"99014","messageId":"alpine.LNX.1.00.0812301845390.19665@iabervon.org","threadId":"16892","inReplyTo":"ud4fdxn08.fsf@terrapin.northbound-train.com","subject":"Re: git clone - failing on cygwin with git:// but not with ssh://","fromName":"Daniel Barkalow","fromEmail":"barkalow@iabervon.org","sentAt":"2008-12-30T23:52:59Z","receivedAt":"2008-12-30T23:52:59Z","isPatch":false,"sender":{"key":"barkalow@iabervon.org","avatar":"https://avatars.githubusercontent.com/u/55364219?v=4"},"body":"On Sat, 27 Dec 2008, Joe Casadonte wrote:\n\n> Hi,\n> \n> I'm new to git, so my apologies if I'm missing something pretty\n> basic.  Here's my setup:\n> \n> \"Public\" server\n> ---------------\n> OS: RedHat clone, 2.6.9 kernel\n> git version: self-compiled, 1.6.0.6\n> \n> Test client #1 (works)\n> ----------------------\n> OS: RedHat clone, 2.6.9 kernel\n> git version: self-compiled, 1.6.0.6\n> \n> Test client #2 (fails)\n> ----------------------\n> OS: Win XP Pro\n> git version: cygwin compiled, 1.6.0.4\n\nI'd try the msysgit version...\n\n> \n> I have a new repository on the \"public\" server, and have cloned it on\n> test client #1 with:\n> \n> $ git clone git://foobar/myproj.git\n> Initialized empty Git repository in /opt/myproj/.git/\n> remote: Counting objects: 104, done.\n> remote: Compressing objects: 100% (72/72), done.\n> remote: Total 104 (delta 22), reused 104 (delta 22)\n> Receiving objects: 100% (104/104), 76.97 KiB, done.\n> Resolving deltas: 100% (22/22), done.\n> \n> \n> I try the same thing on test box #2 and receive:\n> \n> \n> D:\\temp>git clone git://foobar/otminfmyproj.git\n> Initialized empty Git repository in /cygdrive/d/temp/foobar/.git/\n> fatal: read error (Socket operation on non-socket)\n> fatal: early EOF\n> fatal: index-pack failed\n\nAs Junio said, this smells like the build you have of git or of cygwin \naren't dealing correctly with Windows' non-POSIX-ness. The msysgit version \nis more self-contained, and doesn't expect the system to be POSIX at all.\n\n\t-Daniel\n*This .sig left intentionally blank*\n"}]}