{"thread":{"id":"1201","subject":"git clone rsync:... ?","startedAt":"2005-07-11T21:30:50Z","lastAt":"2005-07-11T22:41:45Z","messageCount":5,"participants":["Marc Singer","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"5965","messageId":"20050711213050.GA18693@buici.com","threadId":"1201","inReplyTo":null,"subject":"git clone rsync:... ?","fromName":"Marc Singer","fromEmail":"elf@buici.com","sentAt":"2005-07-11T21:30:50Z","receivedAt":"2005-07-11T21:30:50Z","isPatch":false,"sender":{"key":"elf@buici.com","avatar":null},"body":"  elf@florence /git > git clone rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git linux-2.6\n  defaulting to local storage area\n  ssh: rsync: Name or service not known\n  fatal: unexpected EOF\n\nI've read several messages that this is changing, but it still isn't\nclear where we should be starting.  Moreover, I'd like to be able to\nkeep one repo that is just pulling from the net and then clone it for\ndifferent working directories.  Why?  Sometimes, in my ignorance, I\nbreak my working repo.  It's handy to have one that I know is OK\nwithout pulling from the net each time.\n"},{"id":"5971","messageId":"7v4qb1ouwk.fsf@assigned-by-dhcp.cox.net","threadId":"1201","inReplyTo":"20050711213050.GA18693@buici.com","subject":"Re: git clone rsync:... ?","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2005-07-11T22:11:23Z","receivedAt":"2005-07-11T22:11:23Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Marc Singer <elf@buici.com> writes:\n\n>   elf@florence /git > git clone rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git linux-2.6\n>   defaulting to local storage area\n>   ssh: rsync: Name or service not known\n>   fatal: unexpected EOF\n\nHmph.  \"git clone rsync://rsync.kernel.org/pub/scm/git/git.git git.git\"\nseems to work so does the exact command you show above.  Is it\npossible that you are running git-clone-script from an older Git?\n\n> Moreover, I'd like to be able to\n> keep one repo that is just pulling from the net and then clone it for\n> different working directories.\n\nThat is a sane thing to ask.  Assuming you have solved the above\nproblem:\n\n    $ ls\n    linux-2.6\n    $ git clone -l linux-2.6 linux-ms\n    $ git clone -l linux-2.6 linux-ms-net\n    $ git clone -l linux-2.6 linux-ms-ide\n    $ git clone -l linux-2.6 linux-ms-usb\n\nwould make local clones of vanilla linux-2.6 repo you locally\nhave (\"-l\" knows to use hardlinks when possible).\n"},{"id":"5972","messageId":"20050711222112.GA21248@buici.com","threadId":"1201","inReplyTo":"7v4qb1ouwk.fsf@assigned-by-dhcp.cox.net","subject":"Re: git clone rsync:... ?","fromName":"Marc Singer","fromEmail":"elf@buici.com","sentAt":"2005-07-11T22:21:12Z","receivedAt":"2005-07-11T22:21:12Z","isPatch":false,"sender":{"key":"elf@buici.com","avatar":null},"body":"On Mon, Jul 11, 2005 at 03:11:23PM -0700, Junio C Hamano wrote:\n> Marc Singer <elf@buici.com> writes:\n> \n> >   elf@florence /git > git clone rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git linux-2.6\n> >   defaulting to local storage area\n> >   ssh: rsync: Name or service not known\n> >   fatal: unexpected EOF\n> \n> Hmph.  \"git clone rsync://rsync.kernel.org/pub/scm/git/git.git git.git\"\n> seems to work so does the exact command you show above.  Is it\n> possible that you are running git-clone-script from an older Git?\n\nWhat I've been doing is pulling the cogito source, this time directly\nfrom the net accessible repo, building it, and then copying the\nbinaries to a special directory I added to my path\n\n  elf@florence ~...git/bin > cat git-clone-script\n  #!/bin/sh\n  repo=\"$1\"\n  dir=\"$2\"\n  mkdir \"$dir\" && cd \"$dir\" && git-init-db && git-clone-pack \"$repo\"\n\nWhat more could I need?\n\n> \n> > Moreover, I'd like to be able to\n> > keep one repo that is just pulling from the net and then clone it for\n> > different working directories.\n> \n> That is a sane thing to ask.  Assuming you have solved the above\n> problem:\n> \n>     $ ls\n>     linux-2.6\n>     $ git clone -l linux-2.6 linux-ms\n>     $ git clone -l linux-2.6 linux-ms-net\n>     $ git clone -l linux-2.6 linux-ms-ide\n>     $ git clone -l linux-2.6 linux-ms-usb\n> \n> would make local clones of vanilla linux-2.6 repo you locally\n> have (\"-l\" knows to use hardlinks when possible).\n\nThat, too, has been failing.  I think for some different reason.\n\n  elf@florence ~/z/embedded > git clone -l linux-2.6 linux-2.6-cloned\n  mkdir: cannot create directory `linux-2.6': File exists\n\nLooks like something's borked.\n"},{"id":"5973","messageId":"7vwtnxnf5m.fsf@assigned-by-dhcp.cox.net","threadId":"1201","inReplyTo":"20050711222112.GA21248@buici.com","subject":"Re: git clone rsync:... ?","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2005-07-11T22:36:53Z","receivedAt":"2005-07-11T22:36:53Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Marc Singer <elf@buici.com> writes:\n\n> Looks like something's borked.\n\nCogito I slurped about half hour ago has a quite different\ngit-clone-script from your 4-line version.  It is not surprising\n\"git clone -l\" would not work with it ;-).\n\nI just checked.  Are you using Cogito 0.12 by any chance?\n\nUnfortunately it is ancient in this area.  Selected diffstat\nbetween 0.12 and Pasky head I think relevant is this:\n\n git-clone-script                       |   97 ++++\n"},{"id":"5975","messageId":"20050711224144.GA24278@buici.com","threadId":"1201","inReplyTo":"7vwtnxnf5m.fsf@assigned-by-dhcp.cox.net","subject":"Re: git clone rsync:... ?","fromName":"Marc Singer","fromEmail":"elf@buici.com","sentAt":"2005-07-11T22:41:45Z","receivedAt":"2005-07-11T22:41:45Z","isPatch":false,"sender":{"key":"elf@buici.com","avatar":null},"body":"On Mon, Jul 11, 2005 at 03:36:53PM -0700, Junio C Hamano wrote:\n> Marc Singer <elf@buici.com> writes:\n> \n> > Looks like something's borked.\n> \n> Cogito I slurped about half hour ago has a quite different\n> git-clone-script from your 4-line version.  It is not surprising\n> \"git clone -l\" would not work with it ;-).\n> \n> I just checked.  Are you using Cogito 0.12 by any chance?\n\nI pulled cogito from the repo.\n\n> Unfortunately it is ancient in this area.  Selected diffstat\n> between 0.12 and Pasky head I think relevant is this:\n> \n>  git-clone-script                       |   97 ++++\n\nOK.  Let's take another step backward.  There are lots of changes\nbeing made to all of these tools.  Where should I be getting my git\nprograms so that I've got a good chance that they'll work.  Jeff's\ninstructions, I believe, are already out-of-date.\n"}]}