git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Nick Hengeveld <nickh@reactrix.com>
To: Junio C Hamano <junkio@cox.net>
Cc: git@vger.kernel.org
Subject: Re: git-http-push and hooks
Date: Tue, 7 Feb 2006 15:48:12 -0800	[thread overview]
Message-ID: <20060207234812.GC3833@reactrix.com> (raw)
In-Reply-To: <7vpslysqcb.fsf@assigned-by-dhcp.cox.net>

On Tue, Feb 07, 2006 at 03:26:28PM -0800, Junio C Hamano wrote:

> 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.

  reply	other threads:[~2006-02-07 23:48 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-06 20:52 git-http-push and hooks Bertrand Jacquin (Beber)
2006-02-06 23:22 ` Nick Hengeveld
2006-02-07 19:54   ` Fredrik Kuivinen
2006-02-07 20:23     ` Nick Hengeveld
2006-02-07 20:57       ` Fredrik Kuivinen
2006-02-07 21:02         ` Bertrand Jacquin
2006-02-07 23:41           ` Junio C Hamano
2006-02-07 21:17       ` Junio C Hamano
2006-02-07 22:45         ` Nick Hengeveld
2006-02-07 23:26           ` Junio C Hamano
2006-02-07 23:48             ` Nick Hengeveld [this message]
2006-02-07 20:51     ` Bertrand Jacquin

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=20060207234812.GC3833@reactrix.com \
    --to=nickh@reactrix.com \
    --cc=git@vger.kernel.org \
    --cc=junkio@cox.net \
    /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;
as well as URLs for NNTP newsgroup(s).