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

Re: Enforcing clone/fetch to use references.

From
ARArun Raghavan <ford_prefect@gentoo.org>
Date
Sep 23, 2010, 12:39 UTC
Message-ID
<AANLkTik-VRdUzFSBD2VADp=WMVtRh_kO6zjZxLxOZohW@mail.gmail.com>
In-Reply-To
<20100921221229.GA29680@huya.qualcomm.com>
Hey David,
On 22 September 2010 03:42, David Brown <davidb@codeaurora.org> wrote:
Show 25 quoted lines
> On Tue, Sep 21, 2010 at 05:31:35PM -0400, Jeff King wrote:
>> On Tue, Sep 21, 2010 at 01:44:56PM -0700, David Brown wrote:
>>
>> > Suppose I want to publish some changes to a tree.  I have a server
>> > available where I can run a git daemon, but for one reason or another
>> > I want to force people to use the another git repo as a reference.
>> > The reason could be one of bandwidth, or someone who isn't comfortable
>> > making all of the other source available.  Ideally, someone who
>> > already has the other git repo cloned, and just adds mine as a remote
>> > wouldn't notice the difference.
>>
>> I think the gentoo people were talking about doing something like this.
>> They wanted you to use some faster and/or restartable protocol to clone
>> initially, and so they wanted to reject initial clones. I'm not sure if
>> they are doing that, and how (from the thread below, I suspect they run
>> a patched git).
>>
>> The simplest thing would be a pre-upload-pack hook. There was some
>> discussion of that in this thread:
>>
>>   http://article.gmane.org/gmane.comp.version-control.git/137007
>
> Arun, did you ever get a chance to rework the upload-pack hooks to
> work only from git daemon?  If not, I'd like to take a look into
> implementing this.

I never did get a chance to finish work on this. The last IRC discussion we had about this is at http://dev.gentoo.org/~ford_prefect/git-hooks-discussion-log.txt

We still definitely do need this in Gentoo for when our git migration happens.
Cheers,
-- 
Arun Raghavan
http://arunraghavan.net/
(Ford_Prefect | Gentoo) & (arunsr | GNOME)
Previous: David Brown
Message 4 of 4 in “Enforcing clone/fetch to use references.”
  1. David BrownSep 21, 2010
  2. Jeff KingSep 21, 2010
  3. David BrownSep 21, 2010
  4. Arun RaghavanSep 23, 2010

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.