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

Re: git-http-push and hooks

From
NHNick Hengeveld <nickh@reactrix.com>
Date
Feb 7, 2006, 23:48 UTC
Message-ID
<20060207234812.GC3833@reactrix.com>
In-Reply-To
<7vpslysqcb.fsf@assigned-by-dhcp.cox.net>
On Tue, Feb 07, 2006 at 03:26:28PM -0800, Junio C Hamano wrote:
Show 14 quoted lines
> If I and you clone from a shared repository at the same time, I
> did my development while you did your own on top of that same
> commit without pulling from the repository further, and I
> uploaded my changes to update the ref, what should happen to you
> once you are ready to push?
> 
> Is that what being asked?
> 
> If so, I think the sensible thing to do is to reject your push
> and suggest you to pull first, just like the git native protocol
> push does.  That pull would end up first merging my changes to
> your work in your repository, and then you can push the result
> back to the shared repository.  Otherwise you would lose my
> changes.

Makes sense, and it's the way http-push already works for heads. I guess where I'm not clear is tags - since info/refs is generated by recursing through everything in the refs/ subdirectory. I think I just answered my own question though; http-push needs to recurse through everything under refs/ on the remote end to generate the new info/refs file. That just leaves the problem that http-push doesn't push tags yet.

-- 
For a successful technology, reality must take precedence over public
relations, for nature cannot be fooled.
Previous: Junio C HamanoNext: Bertrand Jacquin
Message 11 of 12 in “git-http-push and hooks”
  1. Bertrand Jacquin (Beber)Feb 6, 2006
  2. Nick HengeveldFeb 6, 2006
  3. Fredrik KuivinenFeb 7, 2006
  4. Nick HengeveldFeb 7, 2006
  5. Fredrik KuivinenFeb 7, 2006
  6. Bertrand JacquinFeb 7, 2006
  7. Junio C HamanoFeb 7, 2006
  8. Junio C HamanoFeb 7, 2006
  9. Nick HengeveldFeb 7, 2006
  10. Junio C HamanoFeb 7, 2006
  11. Nick HengeveldFeb 7, 2006
  12. Bertrand JacquinFeb 7, 2006

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.