Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCHv2 1/2] Support multiple virtual repositories with a single object store and refs

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:51:19

Johannes Schindelin [off-list ref] writes:
quoted
Not that we know of.  Are we missing something?
This is a change of protocol by my understanding:

-- snip --
 	if (sent_capabilities)
-		packet_write(1, "%s %s\n", sha1_to_hex(sha1), path);
+		packet_write(1, "%s %s%s\n", sha1_to_hex(sha1), refnameprefix, path);
-- snap --
I think this is not a change in the protocol per-se, but rather a botched
attempt to make refs/virt/one/refsheads/foo this side has appear as if it
is refs/heads/foo to the other side. In other words, you probably spotted
a bug.

When read with the "chroot" analogy of Peff and Shawn earlier in the
thread in mind, shouldn't the sending end that is pretending that only a
part of its ref namespace is actually the whole thing _stripping_ the
prefix from the real namespace, rather than appending the extra prefix?

I've been down sick, feeling feverish, this afternoon, so I may be
remembering what I understood while reading the code incorrectly, but that
was the impression I got.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help