git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* git clone rsync:... ?
@ 2005-07-11 21:30 Marc Singer
  2005-07-11 22:11 ` Junio C Hamano
  0 siblings, 1 reply; 5+ messages in thread
From: Marc Singer @ 2005-07-11 21:30 UTC (permalink / raw
  To: git

  elf@florence /git > git clone rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git linux-2.6
  defaulting to local storage area
  ssh: rsync: Name or service not known
  fatal: unexpected EOF

I've read several messages that this is changing, but it still isn't
clear where we should be starting.  Moreover, I'd like to be able to
keep one repo that is just pulling from the net and then clone it for
different working directories.  Why?  Sometimes, in my ignorance, I
break my working repo.  It's handy to have one that I know is OK
without pulling from the net each time.

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

* Re: git clone rsync:... ?
  2005-07-11 21:30 git clone rsync:... ? Marc Singer
@ 2005-07-11 22:11 ` Junio C Hamano
  2005-07-11 22:21   ` Marc Singer
  0 siblings, 1 reply; 5+ messages in thread
From: Junio C Hamano @ 2005-07-11 22:11 UTC (permalink / raw
  To: Marc Singer; +Cc: git

Marc Singer <elf@buici.com> writes:

>   elf@florence /git > git clone rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git linux-2.6
>   defaulting to local storage area
>   ssh: rsync: Name or service not known
>   fatal: unexpected EOF

Hmph.  "git clone rsync://rsync.kernel.org/pub/scm/git/git.git git.git"
seems to work so does the exact command you show above.  Is it
possible that you are running git-clone-script from an older Git?

> Moreover, I'd like to be able to
> keep one repo that is just pulling from the net and then clone it for
> different working directories.

That is a sane thing to ask.  Assuming you have solved the above
problem:

    $ ls
    linux-2.6
    $ git clone -l linux-2.6 linux-ms
    $ git clone -l linux-2.6 linux-ms-net
    $ git clone -l linux-2.6 linux-ms-ide
    $ git clone -l linux-2.6 linux-ms-usb

would make local clones of vanilla linux-2.6 repo you locally
have ("-l" knows to use hardlinks when possible).

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

* Re: git clone rsync:... ?
  2005-07-11 22:11 ` Junio C Hamano
@ 2005-07-11 22:21   ` Marc Singer
  2005-07-11 22:36     ` Junio C Hamano
  0 siblings, 1 reply; 5+ messages in thread
From: Marc Singer @ 2005-07-11 22:21 UTC (permalink / raw
  To: Junio C Hamano; +Cc: git

On Mon, Jul 11, 2005 at 03:11:23PM -0700, Junio C Hamano wrote:
> Marc Singer <elf@buici.com> writes:
> 
> >   elf@florence /git > git clone rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git linux-2.6
> >   defaulting to local storage area
> >   ssh: rsync: Name or service not known
> >   fatal: unexpected EOF
> 
> Hmph.  "git clone rsync://rsync.kernel.org/pub/scm/git/git.git git.git"
> seems to work so does the exact command you show above.  Is it
> possible that you are running git-clone-script from an older Git?

What I've been doing is pulling the cogito source, this time directly
from the net accessible repo, building it, and then copying the
binaries to a special directory I added to my path

  elf@florence ~...git/bin > cat git-clone-script
  #!/bin/sh
  repo="$1"
  dir="$2"
  mkdir "$dir" && cd "$dir" && git-init-db && git-clone-pack "$repo"

What more could I need?

> 
> > Moreover, I'd like to be able to
> > keep one repo that is just pulling from the net and then clone it for
> > different working directories.
> 
> That is a sane thing to ask.  Assuming you have solved the above
> problem:
> 
>     $ ls
>     linux-2.6
>     $ git clone -l linux-2.6 linux-ms
>     $ git clone -l linux-2.6 linux-ms-net
>     $ git clone -l linux-2.6 linux-ms-ide
>     $ git clone -l linux-2.6 linux-ms-usb
> 
> would make local clones of vanilla linux-2.6 repo you locally
> have ("-l" knows to use hardlinks when possible).

That, too, has been failing.  I think for some different reason.

  elf@florence ~/z/embedded > git clone -l linux-2.6 linux-2.6-cloned
  mkdir: cannot create directory `linux-2.6': File exists

Looks like something's borked.

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

* Re: git clone rsync:... ?
  2005-07-11 22:21   ` Marc Singer
@ 2005-07-11 22:36     ` Junio C Hamano
  2005-07-11 22:41       ` Marc Singer
  0 siblings, 1 reply; 5+ messages in thread
From: Junio C Hamano @ 2005-07-11 22:36 UTC (permalink / raw
  To: Marc Singer; +Cc: git

Marc Singer <elf@buici.com> writes:

> Looks like something's borked.

Cogito I slurped about half hour ago has a quite different
git-clone-script from your 4-line version.  It is not surprising
"git clone -l" would not work with it ;-).

I just checked.  Are you using Cogito 0.12 by any chance?

Unfortunately it is ancient in this area.  Selected diffstat
between 0.12 and Pasky head I think relevant is this:

 git-clone-script                       |   97 ++++

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

* Re: git clone rsync:... ?
  2005-07-11 22:36     ` Junio C Hamano
@ 2005-07-11 22:41       ` Marc Singer
  0 siblings, 0 replies; 5+ messages in thread
From: Marc Singer @ 2005-07-11 22:41 UTC (permalink / raw
  To: Junio C Hamano; +Cc: git

On Mon, Jul 11, 2005 at 03:36:53PM -0700, Junio C Hamano wrote:
> Marc Singer <elf@buici.com> writes:
> 
> > Looks like something's borked.
> 
> Cogito I slurped about half hour ago has a quite different
> git-clone-script from your 4-line version.  It is not surprising
> "git clone -l" would not work with it ;-).
> 
> I just checked.  Are you using Cogito 0.12 by any chance?

I pulled cogito from the repo.

> Unfortunately it is ancient in this area.  Selected diffstat
> between 0.12 and Pasky head I think relevant is this:
> 
>  git-clone-script                       |   97 ++++

OK.  Let's take another step backward.  There are lots of changes
being made to all of these tools.  Where should I be getting my git
programs so that I've got a good chance that they'll work.  Jeff's
instructions, I believe, are already out-of-date.

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

end of thread, other threads:[~2005-07-11 22:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-11 21:30 git clone rsync:... ? Marc Singer
2005-07-11 22:11 ` Junio C Hamano
2005-07-11 22:21   ` Marc Singer
2005-07-11 22:36     ` Junio C Hamano
2005-07-11 22:41       ` Marc Singer

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).