linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Perhaps git-update-server-info needs to be run on .../paulus/powerpc.git?
@ 2006-08-09  0:35 Kim Phillips
  2006-08-09  1:30 ` Perhaps git-update-server-info needs to be run on.../paulus/powerpc.git? Zang Roy-r61911
  2006-08-09  2:34 ` Perhaps git-update-server-info needs to be run on .../paulus/powerpc.git? Paul Mackerras
  0 siblings, 2 replies; 10+ messages in thread
From: Kim Phillips @ 2006-08-09  0:35 UTC (permalink / raw)
  To: Paul Mackerras; +Cc: linuxppc-dev

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: Perhaps git-update-server-info needs to be run on.../paulus/powerpc.git?
  2006-08-09  0:35 Perhaps git-update-server-info needs to be run on .../paulus/powerpc.git? Kim Phillips
@ 2006-08-09  1:30 ` Zang Roy-r61911
  2006-08-09  2:11   ` Stephen Rothwell
  2006-08-09  2:34 ` Perhaps git-update-server-info needs to be run on .../paulus/powerpc.git? Paul Mackerras
  1 sibling, 1 reply; 10+ messages in thread
From: Zang Roy-r61911 @ 2006-08-09  1:30 UTC (permalink / raw)
  To: Phillips Kim-R1AAHA, Paul Mackerras; +Cc: linuxppc-dev


> Linus' tree clones fine, paulus' doesn't:
>=20
I have the same issue.
Roy

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Perhaps git-update-server-info needs to be run on.../paulus/powerpc.git?
  2006-08-09  1:30 ` Perhaps git-update-server-info needs to be run on.../paulus/powerpc.git? Zang Roy-r61911
@ 2006-08-09  2:11   ` Stephen Rothwell
  2006-08-09  2:27     ` Jon Loeliger
  2006-08-09  4:32     ` Zang Roy-r61911
  0 siblings, 2 replies; 10+ messages in thread
From: Stephen Rothwell @ 2006-08-09  2:11 UTC (permalink / raw)
  To: Zang Roy-r61911; +Cc: linuxppc-dev, Kim.Phillips, paulus

[-- Attachment #1: Type: text/plain, Size: 416 bytes --]

On Wed, 9 Aug 2006 09:30:13 +0800 "Zang Roy-r61911" <tie-fei.zang@freescale.com> wrote:
>
> > 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?

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Perhaps git-update-server-info needs to be run on.../paulus/powerpc.git?
  2006-08-09  2:11   ` Stephen Rothwell
@ 2006-08-09  2:27     ` Jon Loeliger
  2006-08-09  4:32     ` Zang Roy-r61911
  1 sibling, 0 replies; 10+ messages in thread
From: Jon Loeliger @ 2006-08-09  2:27 UTC (permalink / raw)
  To: linuxppc-dev

So, like, the other day Stephen Rothwell mumbled:
> 
> 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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Perhaps git-update-server-info needs to be run on .../paulus/powerpc.git?
  2006-08-09  0:35 Perhaps git-update-server-info needs to be run on .../paulus/powerpc.git? Kim Phillips
  2006-08-09  1:30 ` Perhaps git-update-server-info needs to be run on.../paulus/powerpc.git? Zang Roy-r61911
@ 2006-08-09  2:34 ` Paul Mackerras
  2006-08-09  4:30   ` Perhaps git-update-server-info needs to be run on.../paulus/powerpc.git? Zang Roy-r61911
  2006-09-11  8:25   ` Perhaps git-update-server-info needs to be run on .../paulus/powerpc.git? Paul Mackerras
  1 sibling, 2 replies; 10+ messages in thread
From: Paul Mackerras @ 2006-08-09  2:34 UTC (permalink / raw)
  To: Kim Phillips; +Cc: linuxppc-dev

Kim Phillips writes:

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

Try now...

Paul.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: Perhaps git-update-server-info needs to be run on.../paulus/powerpc.git?
  2006-08-09  2:34 ` Perhaps git-update-server-info needs to be run on .../paulus/powerpc.git? Paul Mackerras
@ 2006-08-09  4:30   ` Zang Roy-r61911
  2006-09-11  8:25   ` Perhaps git-update-server-info needs to be run on .../paulus/powerpc.git? Paul Mackerras
  1 sibling, 0 replies; 10+ messages in thread
From: Zang Roy-r61911 @ 2006-08-09  4:30 UTC (permalink / raw)
  To: Paul Mackerras, Phillips Kim-R1AAHA; +Cc: linuxppc-dev


> Kim Phillips writes:
>=20
> > Linus' tree clones fine, paulus' doesn't:
>=20
> Try now...
>=20
> Paul.

work
Roy

^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: Perhaps git-update-server-info needs to be run on.../paulus/powerpc.git?
  2006-08-09  2:11   ` Stephen Rothwell
  2006-08-09  2:27     ` Jon Loeliger
@ 2006-08-09  4:32     ` Zang Roy-r61911
  1 sibling, 0 replies; 10+ messages in thread
From: Zang Roy-r61911 @ 2006-08-09  4:32 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: linuxppc-dev, Phillips Kim-R1AAHA, paulus


> 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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Perhaps git-update-server-info needs to be run on .../paulus/powerpc.git?
  2006-08-09  2:34 ` Perhaps git-update-server-info needs to be run on .../paulus/powerpc.git? Paul Mackerras
  2006-08-09  4:30   ` Perhaps git-update-server-info needs to be run on.../paulus/powerpc.git? Zang Roy-r61911
@ 2006-09-11  8:25   ` Paul Mackerras
  2006-09-11 20:05     ` Kim Phillips
  1 sibling, 1 reply; 10+ messages in thread
From: Paul Mackerras @ 2006-09-11  8:25 UTC (permalink / raw)
  To: Kim Phillips, linuxppc-dev

Paul Mackerras writes:

> Kim Phillips writes:
> 
> > Linus' tree clones fine, paulus' doesn't:
> 
> Try now...
> 
> Paul.

Oops, mail system error, ignore me...

Paul.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Perhaps git-update-server-info needs to be run on .../paulus/powerpc.git?
  2006-09-11  8:25   ` Perhaps git-update-server-info needs to be run on .../paulus/powerpc.git? Paul Mackerras
@ 2006-09-11 20:05     ` Kim Phillips
  2006-09-13  1:09       ` Paul Mackerras
  0 siblings, 1 reply; 10+ messages in thread
From: Kim Phillips @ 2006-09-11 20:05 UTC (permalink / raw)
  To: Paul Mackerras; +Cc: linuxppc-dev

On Mon, 11 Sep 2006 18:25:28 +1000
Paul Mackerras <paulus@samba.org> wrote:

> Paul Mackerras writes:
> 
> > Kim Phillips writes:
> > 
> > > Linus' tree clones fine, paulus' doesn't:
> > 
> > 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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Perhaps git-update-server-info needs to be run on .../paulus/powerpc.git?
  2006-09-11 20:05     ` Kim Phillips
@ 2006-09-13  1:09       ` Paul Mackerras
  0 siblings, 0 replies; 10+ messages in thread
From: Paul Mackerras @ 2006-09-13  1:09 UTC (permalink / raw)
  To: Kim Phillips; +Cc: linuxppc-dev

Kim Phillips writes:

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

diff --git a/http-fetch.c b/http-fetch.c
index fac1760..d870390 100644
--- a/http-fetch.c
+++ b/http-fetch.c
@@ -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,

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2006-09-13  1:09 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-09  0:35 Perhaps git-update-server-info needs to be run on .../paulus/powerpc.git? Kim Phillips
2006-08-09  1:30 ` Perhaps git-update-server-info needs to be run on.../paulus/powerpc.git? Zang Roy-r61911
2006-08-09  2:11   ` Stephen Rothwell
2006-08-09  2:27     ` Jon Loeliger
2006-08-09  4:32     ` Zang Roy-r61911
2006-08-09  2:34 ` Perhaps git-update-server-info needs to be run on .../paulus/powerpc.git? Paul Mackerras
2006-08-09  4:30   ` Perhaps git-update-server-info needs to be run on.../paulus/powerpc.git? Zang Roy-r61911
2006-09-11  8:25   ` Perhaps git-update-server-info needs to be run on .../paulus/powerpc.git? Paul Mackerras
2006-09-11 20:05     ` Kim Phillips
2006-09-13  1:09       ` Paul Mackerras

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