Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Samuel Bronson <naesten@gmail.com>
To: gdb@sourceware.org
Subject: Re: git clone through http
Date: Fri, 30 May 2014 01:57:00 -0000	[thread overview]
Message-ID: <87ha48dp55.fsf@naesten.mooo.com> (raw)
In-Reply-To: <53876894.5020103@ericsson.com>

[-- Attachment #1: Type: text/plain, Size: 1228 bytes --]

Simon Marchi <simon.marchi@ericsson.com> 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
     <http://sethrobertson.github.io/HowToPutGitOnTheWeb/GitOnTheWeb.html#aro>
     (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!


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: post-update.sample --]
[-- Type: text/x-sh; name=post-update.sample, Size: 189 bytes --]

#!/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

  reply	other threads:[~2014-05-30  1:36 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-29 19:06 Simon Marchi
2014-05-30  1:57 ` Samuel Bronson [this message]
2014-05-30 14:48   ` Simon Marchi
2014-05-30 14:50     ` Joel Brobecker
2014-05-30 15:00     ` Frank Ch. Eigler
2014-05-30 15:10       ` Joel Brobecker
2014-05-30 15:21         ` Marc Khouzam
2014-05-30 15:32           ` pinskia
2014-05-30 15:44             ` Simon Marchi
2014-05-30 16:48               ` Joel Brobecker
2014-05-30 16:53                 ` Simon Marchi
2014-05-30 21:05                   ` Marc Khouzam

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ha48dp55.fsf@naesten.mooo.com \
    --to=naesten@gmail.com \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox