public inbox for git@vger.kernel.org 
 help / color / mirror / Atom feed
From: Jed Brown <jed@59A2•org>
To: git@vger•kernel.org
Cc: Max Horn <max@quendi•de>
Subject: Re: Updating shared ref from remote helper, or fetch hook
Date: Wed, 30 Jan 2013 02:06:41 -0600	[thread overview]
Message-ID: <874nhzksby.fsf@59A2.org> (raw)
In-Reply-To: <87ehh5lw9j.fsf@59A2.org>

Jed Brown <jed@59A2•org> writes:

> I'm working on an hg remote helper that uses git notes for the sha1
> revision, so that git users can more easily refer to specific commits
> when communicating with hg users.  Since there may be multiple
> concurrent fast-import streams, I write the notes to a private ref
> (refs/notes/hg-REMOTE), to be merged eventually using
>
>   git notes --ref hg merge hg-REMOTE*

A related issue is that when a remote helper replies to an 'import' with
_only_ a commit in refs/notes/, git (fetch or pull) produces an error
message like

  error: refs/notes/hg-84b3865b750a567acb16929c21e14c4a45a5639b does not point to a valid object

but successfully updates the ref (which is indeed valid) and returns
0. I have not been able to determine what exactly git thinks is
invalid. As long as there is at least one non-notes commit in the
stream, no such error message is produced.

Is this behavior intended?

      parent reply	other threads:[~2013-01-30  8:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-28  5:19 Updating shared ref from remote helper, or fetch hook Jed Brown
2013-01-29 15:00 ` Max Horn
2013-01-30  8:06 ` Jed Brown [this message]

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=874nhzksby.fsf@59A2.org \
    --to=jed@59a2$(echo .)org \
    --cc=git@vger$(echo .)kernel.org \
    --cc=max@quendi$(echo .)de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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