From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Hommey Subject: Re: [PATCH] Fix problem with authentification on http repository. Date: Wed, 9 Jul 2008 10:56:52 +0200 Organization: glandium.org Message-ID: <20080709085651.GA23453@glandium.org> References: <11911047823308-git-send-email-jean.guyader@linkea.org> <7v8x6pjb4c.fsf@gitster.siamese.dyndns.org> <7v4phdja01.fsf@gitster.siamese.dyndns.org> <7v4p6zmx0l.fsf@gitster.siamese.dyndns.org> <20080709055150.GA28482@glandium.org> <7vlk0blgg0.fsf@gitster.siamese.dyndns.org> <20080709075345.GA22022@glandium.org> <7vhcazlbch.fsf@gitster.siamese.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Johannes Schindelin , jean.guyader@linkea.org, git@vger.kernel.org, Jean Guyader To: Junio C Hamano X-From: git-owner@vger.kernel.org Wed Jul 09 10:58:53 2008 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1KGVV4-0005Yo-R0 for gcvg-git-2@gmane.org; Wed, 09 Jul 2008 10:58:11 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753035AbYGII5N (ORCPT ); Wed, 9 Jul 2008 04:57:13 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753426AbYGII5M (ORCPT ); Wed, 9 Jul 2008 04:57:12 -0400 Received: from vuizook.err.no ([194.24.252.247]:47819 "EHLO vuizook.err.no" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752902AbYGII5M (ORCPT ); Wed, 9 Jul 2008 04:57:12 -0400 Received: from cha92-13-88-165-248-19.fbx.proxad.net ([88.165.248.19] helo=vaio.glandium.org) by vuizook.err.no with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.67) (envelope-from ) id 1KGVTs-0006Nu-Ks; Wed, 09 Jul 2008 10:57:02 +0200 Received: from mh by vaio.glandium.org with local (Exim 4.63) (envelope-from ) id 1KGVTo-0006HD-Rd; Wed, 09 Jul 2008 10:56:52 +0200 Content-Disposition: inline In-Reply-To: <7vhcazlbch.fsf@gitster.siamese.dyndns.org> X-GPG-Fingerprint: A479 A824 265C B2A5 FC54 8D1E DE4B DA2C 54FD 2A58 User-Agent: Mutt/1.5.13 (2006-08-11) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: mh@glandium.org X-SA-Exim-Scanned: No (on vaio.glandium.org); SAEximRunCond expanded to false X-Spam-Status: (score 0.1): No, score=0.1 required=5.0 tests=RDNS_DYNAMIC autolearn=disabled version=3.2.3 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: On Wed, Jul 09, 2008 at 01:18:22AM -0700, Junio C Hamano wrote: > Mike Hommey writes: > > > On Tue, Jul 08, 2008 at 11:28:15PM -0700, Junio C Hamano wrote: > > ... > >> >> Actually Documentation/howto/setup-git-server-over-http.txt > >> >> talks about http://user@server/path/ format. How well does this > >> >> work in practice? If it does, we should update Documentation/urls.txt > >> >> to allow optional user@ there like... > >> > > >> > AFAIK, there is nothing to deal with asking a password to the user in git > >> > in this case, so that doesn't work. > >> > >> Then perhaps the howto needs updating? > > > > Actually, the howto tells to setup a ~/.netrc file, which should make > > the http://user@server/path/ format work. I don't know if dropping user@ > > would still work, that depends how libcurl works with it. > > Ok, so the documentation update I suggested earlier may actually be > valid, right? The problem is that these urls won't work out of the box if the user doesn't setup a .netrc file. I'd say it would be better not to add these forms in Documentation/urls.txt until git prompts for the password when it is missing. Note that http://user:pass@server/path/ /should/ work (but that would need validation), though not a good idea on command line. Mike