Junio C Hamano <gitster <at> pobox.com> writes: > - It also was hoped that pre-receive or pre-update hook on the receiving > end can be used to authenticate and authorize the push itself with the > approach by v3, but when the check happens, the signed-notes tree to be > used for verification is not connected to any ref in the refs/notes/ > hierarchy yet (otherwise it won't be pre-* hook). The query interface > "git notes show" needs to be updated so that it takes not just a ref > via the GIT_NOTES_REF interface, which is defined to specify a ref > because some subcommands of "git notes" need to create a new commit and > update it, but a bare notes tree commit object name [*1*]. We may need > to update "git notes" (at least "show" subcommand) for the use of > receiving end; v3 is no longer a simpler "sender only" solution. > > *1* I wouldn't be surprised if it already worked when you give the object > name of the notes-tree commit to GIT_NOTES_REF when running "git show", > but that is not really a documented interface and working by accident. The > environment variable was designed to take a name of the ref. There's also my old request for comments on refs/notes/ ([RFC] plumbing git- notes, link below). Unexpected thing is that "refs/notes/commits^" is silently accepted, but notes aren't displayed at all. http://thread.gmane.org/gmane.comp.version-control.git/178149 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html