{"thread":{"id":"2433","subject":"cg-admin-setuprepo fails to make a cg-clone'able repo","startedAt":"2005-11-10T16:32:35Z","lastAt":"2005-11-13T00:29:16Z","messageCount":4,"participants":["Randal L. Schwartz","Petr Baudis"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"11481","messageId":"86wtjg31lo.fsf@blue.stonehenge.com","threadId":"2433","inReplyTo":null,"subject":"cg-admin-setuprepo fails to make a cg-clone'able repo","fromName":"Randal L. Schwartz","fromEmail":"merlyn@stonehenge.com","sentAt":"2005-11-10T16:32:35Z","receivedAt":"2005-11-10T16:32:35Z","isPatch":false,"sender":{"key":"merlyn@stonehenge.com","avatar":"https://gravatar.com/avatar/dc528d210743ff0333e6213f9ee7b33b23f1b7bc1f3c5a8c2d819074ecd7ab19?d=mp&s=160"},"body":"\nRepeat by:\n\n        cg-admin-setuprepo repo\n        cg-clone $(PWD)/repo myview\n\nResults:\n\n    defaulting to local storage area\n    Hard links don't work - using copy\n    cp: illegal option -- b\n    usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src target\n           cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src1 ... srcN directory\n    cg-fetch: unable to get the HEAD branch\n    cg-clone: fetch failed\n\nDid I just hold my mouth wrong?  I can't put a HEAD branch in, because\nthere's no local view in the repo.\n-- \nRandal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095\n<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>\nPerl/Unix/security consulting, Technical writing, Comedy, etc. etc.\nSee PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!\n"},{"id":"11533","messageId":"20051111001333.GH30496@pasky.or.cz","threadId":"2433","inReplyTo":"86wtjg31lo.fsf@blue.stonehenge.com","subject":"Re: cg-admin-setuprepo fails to make a cg-clone'able repo","fromName":"Petr Baudis","fromEmail":"pasky@suse.cz","sentAt":"2005-11-11T00:13:33Z","receivedAt":"2005-11-11T00:13:33Z","isPatch":false,"sender":{"key":"pasky@ucw.cz","avatar":"https://avatars.githubusercontent.com/u/18439?v=4"},"body":"Dear diary, on Thu, Nov 10, 2005 at 05:32:35PM CET, I got a letter\nwhere \"Randal L. Schwartz\" <merlyn@stonehenge.com> said that...\n> Repeat by:\n> \n>         cg-admin-setuprepo repo\n>         cg-clone $(PWD)/repo myview\n\nYou should cg-init locally, then cg-admin-setuprepo the public one and\npush to it. I updated cg-admin-setuprepo's description wrt. that now.\n\n> Results:\n> \n>     defaulting to local storage area\n>     Hard links don't work - using copy\n>     cp: illegal option -- b\n>     usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src target\n>            cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src1 ... srcN directory\n>     cg-fetch: unable to get the HEAD branch\n>     cg-clone: fetch failed\n\nBut this is actually an entirely unrelated bug, it seems - pretty\nstrange.  I revived another few months old thread because of this, since\nit seems the 'b' was actually a typo and we don't want to pass 'cp' this\nargument at all, but something different. Does cloning locally otherwise\nwork?\n\n-- \n\t\t\t\tPetr \"Pasky\" Baudis\nStuff: http://pasky.or.cz/\nVI has two modes: the one in which it beeps and the one in which\nit doesn't.\n"},{"id":"11684","messageId":"8664qxn71k.fsf@blue.stonehenge.com","threadId":"2433","inReplyTo":"20051111001333.GH30496@pasky.or.cz","subject":"Re: cg-admin-setuprepo fails to make a cg-clone'able repo","fromName":"Randal L. Schwartz","fromEmail":"merlyn@stonehenge.com","sentAt":"2005-11-12T16:51:35Z","receivedAt":"2005-11-12T16:51:35Z","isPatch":false,"sender":{"key":"merlyn@stonehenge.com","avatar":"https://gravatar.com/avatar/dc528d210743ff0333e6213f9ee7b33b23f1b7bc1f3c5a8c2d819074ecd7ab19?d=mp&s=160"},"body":">>>>> \"Petr\" == Petr Baudis <pasky@suse.cz> writes:\n\nPetr> But this is actually an entirely unrelated bug, it seems - pretty\nPetr> strange.  I revived another few months old thread because of this, since\nPetr> it seems the 'b' was actually a typo and we don't want to pass 'cp' this\nPetr> argument at all, but something different. Does cloning locally otherwise\nPetr> work?\n\nWhen I tried \"local cloning\", I first tried to make an empty archive\nwith cgi-init, but it dumped me into an editor.  I couldn't find a\nswitch to turn that off.  Perhaps the manpage should say \"you'll\nbe dumped in to an editor\", and perhaps provide a way to pass that\nmessage with \"-m\".\n\nSo, on a whim, I realize that it's performing an initial commit, so\nI try cg-init -I.  And here's the result:\n\n    localhost:~/Projects/Git % cg-init -I my_master\n    defaulting to local storage area\n    localhost:~/Projects/Git % cg-clone my_master my_slave\n    defaulting to local storage area\n    find: /Users/merlyn/Projects/Git/my_master: No such file or directory\n    Hard links don't work - using copy\n    Fetching head...\n    cp: illegal option -- b\n    usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src target\n           cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src1 ... srcN directory\n    cg-fetch: unable to get the HEAD branch\n    cg-clone: fetch failed\n\nSo, I guess your answer is no.  What is \"-b\" for cp.  That's not\non my manpage.\n\nAnd, after reading the manpage closer, I see my first \"my_master\"\nwas created wrong.  But no error message. :(  So, repeating this\nusing a subdirectory...\n\n    localhost:~/Projects/Git % rm -rf .git \n    localhost:~/Projects/Git % mkdir my_master\n    localhost:~/Projects/Git % cd my_master\n    localhost:..ects/Git/my_master % cg-init -I\n    defaulting to local storage area\n    localhost:..ects/Git/my_master % cd ..\n    localhost:~/Projects/Git % cg-clone my_master my_slave\n    defaulting to local storage area\n    Hard links don't work - using copy\n    Fetching head...\n    cp: illegal option -- b\n    usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src target\n           cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src1 ... srcN directory\n    cg-fetch: unable to get the HEAD branch\n    cg-clone: fetch failed\n\nAgain, lots of \"no\" answers there.\n\n-- \nRandal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095\n<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>\nPerl/Unix/security consulting, Technical writing, Comedy, etc. etc.\nSee PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!\n"},{"id":"11712","messageId":"20051113002916.GK30496@pasky.or.cz","threadId":"2433","inReplyTo":"8664qxn71k.fsf@blue.stonehenge.com","subject":"Re: cg-admin-setuprepo fails to make a cg-clone'able repo","fromName":"Petr Baudis","fromEmail":"pasky@suse.cz","sentAt":"2005-11-13T00:29:16Z","receivedAt":"2005-11-13T00:29:16Z","isPatch":false,"sender":{"key":"pasky@ucw.cz","avatar":"https://avatars.githubusercontent.com/u/18439?v=4"},"body":"Dear diary, on Sat, Nov 12, 2005 at 05:51:35PM CET, I got a letter\nwhere \"Randal L. Schwartz\" <merlyn@stonehenge.com> said that...\n> >>>>> \"Petr\" == Petr Baudis <pasky@suse.cz> writes:\n> \n> Petr> But this is actually an entirely unrelated bug, it seems - pretty\n> Petr> strange.  I revived another few months old thread because of this, since\n> Petr> it seems the 'b' was actually a typo and we don't want to pass 'cp' this\n> Petr> argument at all, but something different. Does cloning locally otherwise\n> Petr> work?\n> \n> When I tried \"local cloning\", I first tried to make an empty archive\n> with cgi-init, but it dumped me into an editor.  I couldn't find a\n> switch to turn that off.  Perhaps the manpage should say \"you'll\n> be dumped in to an editor\",\n\nWell, that's pretty obvious after the first try. ;-)\n\n> and perhaps provide a way to pass that message with \"-m\".\n\nGood idea. Added.\n\n> So, on a whim, I realize that it's performing an initial commit,\n\nIt says that right in the editor, after all. :-)\n\n> so I try cg-init -I.\n> \n> And here's the result:\n> \n>     localhost:~/Projects/Git % cg-init -I my_master\n>     defaulting to local storage area\n>     localhost:~/Projects/Git % cg-clone my_master my_slave\n>     defaulting to local storage area\n>     find: /Users/merlyn/Projects/Git/my_master: No such file or directory\n>     Hard links don't work - using copy\n>     Fetching head...\n>     cp: illegal option -- b\n>     usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src target\n>            cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src1 ... srcN directory\n>     cg-fetch: unable to get the HEAD branch\n>     cg-clone: fetch failed\n> \n> So, I guess your answer is no.  What is \"-b\" for cp.  That's not\n> on my manpage.\n\nIt's something totally weird \"backup\" thing. A bug in Cogito, what we\n_want_ is to have cp dereferencing its symlink. I replaced it with -L\nnow. Could you try the latest version from git or -rc2 (coming out in\nfew minutes), please?\n\n> And, after reading the manpage closer, I see my first \"my_master\"\n> was created wrong.  But no error message. :(\n\nGood catch. Fixed.\n\n-- \n\t\t\t\tPetr \"Pasky\" Baudis\nStuff: http://pasky.or.cz/\nVI has two modes: the one in which it beeps and the one in which\nit doesn't.\n"}]}