git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git clone - failing on cygwin with git:// but not with ssh://

From
Daniel Barkalow <barkalow@iabervon.org>
Date
Dec 30, 2008, 23:52 UTC
Message-ID
<alpine.LNX.1.00.0812301845390.19665@iabervon.org>
In-Reply-To
<ud4fdxn08.fsf@terrapin.northbound-train.com>
On Sat, 27 Dec 2008, Joe Casadonte wrote:
Show 19 quoted lines
> Hi,
> 
> I'm new to git, so my apologies if I'm missing something pretty
> basic.  Here's my setup:
> 
> "Public" server
> ---------------
> OS: RedHat clone, 2.6.9 kernel
> git version: self-compiled, 1.6.0.6
> 
> Test client #1 (works)
> ----------------------
> OS: RedHat clone, 2.6.9 kernel
> git version: self-compiled, 1.6.0.6
> 
> Test client #2 (fails)
> ----------------------
> OS: Win XP Pro
> git version: cygwin compiled, 1.6.0.4
I'd try the msysgit version...
Show 21 quoted lines
> 
> I have a new repository on the "public" server, and have cloned it on
> test client #1 with:
> 
> $ git clone git://foobar/myproj.git
> Initialized empty Git repository in /opt/myproj/.git/
> remote: Counting objects: 104, done.
> remote: Compressing objects: 100% (72/72), done.
> remote: Total 104 (delta 22), reused 104 (delta 22)
> Receiving objects: 100% (104/104), 76.97 KiB, done.
> Resolving deltas: 100% (22/22), done.
> 
> 
> I try the same thing on test box #2 and receive:
> 
> 
> D:\temp>git clone git://foobar/otminfmyproj.git
> Initialized empty Git repository in /cygdrive/d/temp/foobar/.git/
> fatal: read error (Socket operation on non-socket)
> fatal: early EOF
> fatal: index-pack failed

As Junio said, this smells like the build you have of git or of cygwin aren't dealing correctly with Windows' non-POSIX-ness. The msysgit version is more self-contained, and doesn't expect the system to be POSIX at all.

	-Daniel
*This .sig left intentionally blank*
Previous: Joe Casadonte
Message 3 of 3 in “git clone - failing on cygwin with git:// but not with ssh://”
  1. Joe CasadonteDec 27, 2008
  2. Joe CasadonteDec 29, 2008
  3. Daniel BarkalowDec 30, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.