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, 22:45 UTC
Message-ID
<20060207224551.GB3833@reactrix.com>
In-Reply-To
<7vwtg6uaw6.fsf@assigned-by-dhcp.cox.net>
On Tue, Feb 07, 2006 at 01:17:13PM -0800, Junio C Hamano wrote:
Show 5 quoted lines
> If the server info updates is the _only_ problem, then perhaps
> that would be the easiest and cleanest.  Whenever you update or
> add a ref you would need to update info/refs (otherwise
> ls-remote would not give you the latest info), and whenever you
> repack you would need to update objects/info/packs.

What happens if someone else updates a ref and it no longer matches your local ref? Should the push scan the remote versions of all local refs and update whatever doesn't match?

Show 5 quoted lines
> You may probably want to have a CGI to allow you manage the
> repository remotely anyway, to trigger a repack or remove a
> stale branch head, for example.  Once you go that route maybe
> having the CGI to do something like the pack protocol for more
> efficient transfer might become more attractive.

That's an option if the user has the ability to install CGI scripts on the DAV server, which doesn't seem like it will always be true. Perhaps it would make sense to do both:

- add a git-http-repack command that works in a DAV-only environment
- add a CGI script to provide remote management, and a config
  setting to git-http-push for the remote management URL
-- 
For a successful technology, reality must take precedence over public
relations, for nature cannot be fooled.
Previous: Junio C HamanoNext: Junio C Hamano
Message 9 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.