From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10431 invoked by alias); 30 May 2014 01:36:20 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 10416 invoked by uid 89); 30 May 2014 01:36:16 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: plane.gmane.org Received: from plane.gmane.org (HELO plane.gmane.org) (80.91.229.3) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Fri, 30 May 2014 01:36:10 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WqBjq-0001DC-FS for gdb@sourceware.org; Fri, 30 May 2014 03:36:06 +0200 Received: from 207-172-123-137.c3-0.upd-ubr1.trpr-upd.pa.cable.rcn.com ([207.172.123.137]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 30 May 2014 03:36:06 +0200 Received: from naesten by 207-172-123-137.c3-0.upd-ubr1.trpr-upd.pa.cable.rcn.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 30 May 2014 03:36:06 +0200 To: gdb@sourceware.org From: Samuel Bronson Subject: Re: git clone through http Date: Fri, 30 May 2014 01:57:00 -0000 Message-ID: <87ha48dp55.fsf@naesten.mooo.com> References: <53876894.5020103@ericsson.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-IsSubscribed: yes X-SW-Source: 2014-05/txt/msg00086.txt.bz2 --=-=-= Content-Type: text/plain Content-length: 1228 Simon Marchi writes: > Hello, > > Cloning the binutils-gdb repository using the http address > (http://sourceware.org/git/binutils-gdb.git) doesn't seem to work. > > $ git clone http://sourceware.org/git/binutils-gdb.git > Cloning into 'binutils-gdb'... > error: Unable to get pack index > http://sourceware.org/git/binutils-gdb.git/objects/pack/pack-40a278cd270f8215e6b993869d659b2aff311eb8.idx [...] Such messages indicate that, in order for http access to work, someone either needs to: 1. Rename/copy the file "hooks/post-update.sample" in the repository to "hooks/post-update" to allow use of the "dumb" git protocol. (In case the file is missing, or for the lazy but still curious, I have also appended a copy to this message.) or 2. Somehow set up a "smart" web-based git server. This seems to involve git-http-backend(1); for Apache, there are directions at (and earlier parts of that page). Choice 2 is clearly more complicated and more httpd-specific, but also more efficient in most cases. -- Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread! --=-=-= Content-Type: text/x-sh; name=post-update.sample Content-Disposition: inline Content-length: 189 #!/bin/sh # # An example hook script to prepare a packed repository for use over # dumb transports. # # To enable this hook, rename this file to "post-update". exec git update-server-info --=-=-=--