From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Wong Subject: Re: git-svn+cygwin failed fetch Date: Wed, 11 Jul 2007 22:48:00 -0700 Message-ID: <20070712054800.GC29676@muzzle> References: <20070711090600.GB29676@muzzle> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: git@vger.kernel.org To: Russ Dill X-From: git-owner@vger.kernel.org Thu Jul 12 07:48:07 2007 Return-path: Envelope-to: gcvg-git@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1I8rX4-0000xy-Ul for gcvg-git@gmane.org; Thu, 12 Jul 2007 07:48:07 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751704AbXGLFsE (ORCPT ); Thu, 12 Jul 2007 01:48:04 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751648AbXGLFsD (ORCPT ); Thu, 12 Jul 2007 01:48:03 -0400 Received: from hand.yhbt.net ([66.150.188.102]:40509 "EHLO hand.yhbt.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751596AbXGLFsC (ORCPT ); Thu, 12 Jul 2007 01:48:02 -0400 Received: from localhost.localdomain (localhost [127.0.0.1]) by hand.yhbt.net (Postfix) with ESMTP id DC76E2DC032; Wed, 11 Jul 2007 22:48:00 -0700 (PDT) Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-11) Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: Russ Dill wrote: > On 7/11/07, Eric Wong wrote: > >Russ Dill wrote: > >> [...]/src $ mkdir foo > >> [...]/src $ cd foo > >> [...]/src/foo $ git-svn init -t tags -b branches -T trunk > >> https://www.[...].com/svn/foo/bar/bla > >> Initialized empty Git repository in .git/ > >> Using higher level of URL: https://www.[...].com/svn/foo/bar/bla => > >> https://www.[...].com/svn/foo > >> > >> [...]/src/foo $ git-svn fetch > >> config --get svn-remote.svn.url: command returned error: 1 > >> > >> [...]/src/foo $ git config --get svn-remote.svn.url > >> https://www.[...].com/svn/foo > > > >Sorry, I can't help here other than recommending a real UNIX with > >fork + pipe + exec and all that fun stuff. > > > >git-svn relies heavily[1] on both input and output pipes of the > >safer-but-made-for-UNIX fork + pipe + exec(@list) variety, so I suspect > >this is just the tip of the iceberg for Windows incompatibilies with > >git-svn... > > Its actually reading and writing quite a bit of stuff from the config > file, so why this one simple command would fail eludes me. Especially > since it wrote it there in the first place. If I comment out the > command_oneline and hardcode the value I know it should return, > git-fetch runs. Its actually been running for several hours now. Wow. That's a pleasant surprise that anything in git-svn works at all on cygwin. I was almost certain git-svn on Windows was a hopeless cause from other chatter I had heard on the mailing list. command_oneline() is used everywhere in that code, so I'm at a total loss as to why it would fail in one place. Can you put a the following lines right before where it was failing? print "GIT_CONFIG: $ENV{GIT_CONFIG} | GIT_DIR: $ENV{GIT_DIR}\n"; system('cat', "$ENV{GIT_DIR}/config"); And tell me what it outputs? -- Eric Wong