Skip to contentSkip to conversation

Perhaps git-update-server-info needs to be run on .../paulus/powerpc.git?

DISCUSSION Kim Phillips 5 participants 10 messages Aug 9, 2006 – Sep 13, 2006

lore
Share & tools
lore
#0 lore raw

Linus' tree clones fine, paulus' doesn't:

$ git clone http://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc.git
Cannot get remote repository information.
Perhaps git-update-server-info needs to be run there?
$ git --version
git version 1.4.1
$ cg-clone http://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc.git
defaulting to local storage area
Fetching head...
Fetching objects...
Getting alternates list for http://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc.git/
Also look at http://git.kernel.or
Getting pack list for http://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc.git/
Getting pack list for http://git.kernel.or
error: Unable to find b1f5b9df2ae1f4eede001d7751b099d4ae34be95 under http://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc.git/
Cannot obtain needed blob b1f5b9df2ae1f4eede001d7751b099d4ae34be95
while processing commit 81b73dd92b97423b8f5324a59044da478c04f4c4.
progress: 12 objects, 8836 bytes
cg-fetch: objects fetch failed
$

Kim

#1 lore raw

RE: Perhaps git-update-server-info needs to be run on.../paulus/powerpc.git?

Quoted 3 lines

Linus' tree clones fine, paulus' doesn't:
=20

I have the same issue.
Roy

#2 lore raw

Re: Perhaps git-update-server-info needs to be run on.../paulus/powerpc.git?

Quoted 4 lines · On Wed, 9 Aug 2006 09:30:13 +0800 "Zang Roy-r61911"…
Quoted 3 lines

Linus' tree clones fine, paulus' doesn't:

I have the same issue.

Have you tried using the git protocol ("git://" instead of "http://")? Or cloning Linus tree and then fetching Paulus tree into it?

Signature · 3 lines
Cheers,
Stephen Rothwell                    [email protected]
http://www.canb.auug.org.au/~sfr/
#3 lore raw

Re: Perhaps git-update-server-info needs to be run on.../paulus/powerpc.git?

So, like, the other day Stephen Rothwell mumbled:

Quoted 3 lines

Have you tried using the git protocol ("git://" instead of "http://")? Or cloning Linus tree and then fetching Paulus tree into it?

So two things: Firewall policy prevents using git native protocol, and it sure would be nice if we could chmod +x hooks/post-update on that tree once and for all as that issue exists every time it is updated.

Thanks,
jdl

#4 lore raw

RE: Perhaps git-update-server-info needs to be run on.../paulus/powerpc.git?

In reply to Stephen Rothwell
Quoted 5 lines

Have you tried using the git protocol ("git://" instead of=20 "http://")? Or cloning Linus tree and then fetching Paulus=20 tree into it?
=20

I can not penetrate the firewall with "git://".=20 Now http works.
Thanks
Roy

#6 lore raw

RE: Perhaps git-update-server-info needs to be run on.../paulus/powerpc.git?

Quoted 8 lines

Kim Phillips writes:
=20

Quoted 1 line

Linus' tree clones fine, paulus' doesn't:

=20
Try now...
=20
Paul.

work
Roy

#8 lore raw
Quoted 6 lines · On Mon, 11 Sep 2006 18:25:28 +1000 Paul Mackerras <[email protected]> wrote:
Quoted 4 lines · Paul Mackerras
Quoted 1 line · Kim Phillips

Linus' tree clones fine, paulus' doesn't:

Quoted 7 lines
Quoted 3 lines

Try now...

Paul.

Oops, mail system error, ignore me...

Paul.

funnily enough, I can't seem to clone your tree again today; I'm using the http: protocol.

hopefully, the fix should only be a matter of:

chmod +x hooks/post-update

Thanks,

Kim

#9 lore raw
Quoted 6 lines · Kim Phillips

funnily enough, I can't seem to clone your tree again today; I'm using the http: protocol.

hopefully, the fix should only be a matter of:

chmod +x hooks/post-update

Nope. This patch (to git) from Junio Hamano seems to fix it, though.

Paul.

http-fetch.c +8 -2
index fac1760..d870390 100644
@@ -559,7 +559,13 @@ static void process_alternates_response(
 			char *target = NULL;
 			char *path;
 			if (data[i] == '/') {
-				serverlen = strchr(base + 8, '/') - base;
+				/* This counts
+				 * http://git.host/pub/scm/linux.git
+				 * 1234567----here^
+				 * so strcpy(dst, base, serverlen) will
+				 * copy up to "...git.host/"
+				 */
+				serverlen = strchr(base + 7, '/') - base;
 				okay = 1;
 			} else if (!memcmp(data + i, "../", 3)) {
 				i += 3;
@@ -586,7 +592,7 @@ static void process_alternates_response(
 			/* skip 'objects' at end */
 			if (okay) {
 				target = xmalloc(serverlen + posn - i - 6);
-				strlcpy(target, base, serverlen);
+				memcpy(target, base, serverlen);
 				strlcpy(target + serverlen, data + i, posn - i - 6);
 				if (get_verbosely)
 					fprintf(stderr,