{"thread":{"id":"2608","subject":"still unclear on setting up a repository","startedAt":"2005-11-20T00:40:20Z","lastAt":"2005-11-27T23:15:29Z","messageCount":6,"participants":["Randal L. Schwartz","Andreas Ericsson","Petr Baudis"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"12347","messageId":"86br0g883v.fsf@blue.stonehenge.com","threadId":"2608","inReplyTo":null,"subject":"still unclear on setting up a repository","fromName":"Randal L. Schwartz","fromEmail":"merlyn@stonehenge.com","sentAt":"2005-11-20T00:40:20Z","receivedAt":"2005-11-20T00:40:20Z","isPatch":false,"sender":{"key":"merlyn@stonehenge.com","avatar":"https://gravatar.com/avatar/dc528d210743ff0333e6213f9ee7b33b23f1b7bc1f3c5a8c2d819074ecd7ab19?d=mp&s=160"},"body":"\nI'm really unclear here if it's me, the code, or the docs...\n\nfirst, create the \"remote\"\n\n        % cg-admin-setuprepo remote.git\n\nthat works fine, now set up the \"local\"\n\n        % mkdir local.git\n        % cd local-git\n        % cg-init -m \"junk message why should I have to do this one, it's dumb\"\n\nNow here's where I'm unclear.  I need to \"push\" this into the remote,\nso I try this:\n\n        % cg-branch-add origin \"$(cd ..; pwd)/remote.git#master\"\n        % cg-branch-ls\n\nThis seems to report the right thing.  I have a branch \"origin\"\nthat points at the remote repository.  So far, I think I'm understanding\nwhat's happening.  But now, go boom:\n\n        % cg-push\n        cg-push: where to push to?\n\nHuh?  How do I do the initial push?  Not this way?  Is it me, docs, or\ncode that is broken here?\n\nUPDATE...\n\naha... \"cg-push origin\" works.  But \"cg-push\" is documented to\ndefault to \"origin\".  Why doesn't it?\n\nAnd then, another \"go-boom\" problem:\n\n    % cg-fetch\n    Hard links don't work - using copy\n    Fetching head...\n    cp: illegal option -- d\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 pointer of branch master\n\nAny chance you could make this more POSIX-like?  I know you have a big\nwarning in README.osx, but are you *really* needing all those weird\nGNU-isms?  Maybe you could fall back to using rsync to copy exactly\nwhat you need?\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":"12348","messageId":"437FCC60.3090100@op5.se","threadId":"2608","inReplyTo":"86br0g883v.fsf@blue.stonehenge.com","subject":"Re: still unclear on setting up a repository","fromName":"Andreas Ericsson","fromEmail":"ae@op5.se","sentAt":"2005-11-20T01:07:44Z","receivedAt":"2005-11-20T01:07:44Z","isPatch":false,"sender":{"key":"ae@op5.se","avatar":"https://gravatar.com/avatar/426e89595c75a8f5252dd0c989e5fabe5bcac616e68557427ad9aef6b0ca342a?d=mp&s=160"},"body":"Randal L. Schwartz wrote:\n> And then, another \"go-boom\" problem:\n> \n>     % cg-fetch\n>     Hard links don't work - using copy\n>     Fetching head...\n>     cp: illegal option -- d\n\n\nI think this was resolved some weeks ago. Perhaps you could try the \nlatest cogito from git://git.kernel.org/pub/scm/cogito/cogito.git ?\n\n> \n> Any chance you could make this more POSIX-like?  I know you have a big\n> warning in README.osx, but are you *really* needing all those weird\n> GNU-isms?  Maybe you could fall back to using rsync to copy exactly\n> what you need?\n> \n\nThere aren't that many. This particular one was a typo, iirc.\n\nAs for rsync; From the output you posted above, you were setting up both \nthe repositories on your local machine. Using rsync for those cases \nwould be pretty stupid.\n\nOn a side-note, could you please turn off your spamvertising auto-reply? \nIt sends me some info about your perl-expertise and contact-numbers \nevery now and then. It's getting a bit annoying.\n\n-- \nAndreas Ericsson                   andreas.ericsson@op5.se\nOP5 AB                             www.op5.se\nTel: +46 8-230225                  Fax: +46 8-230231\n"},{"id":"12350","messageId":"86y83k6ry0.fsf@blue.stonehenge.com","threadId":"2608","inReplyTo":"437FCC60.3090100@op5.se","subject":"Re: still unclear on setting up a repository","fromName":"Randal L. Schwartz","fromEmail":"merlyn@stonehenge.com","sentAt":"2005-11-20T01:14:47Z","receivedAt":"2005-11-20T01:14:47Z","isPatch":false,"sender":{"key":"merlyn@stonehenge.com","avatar":"https://gravatar.com/avatar/dc528d210743ff0333e6213f9ee7b33b23f1b7bc1f3c5a8c2d819074ecd7ab19?d=mp&s=160"},"body":">>>>> \"Andreas\" == Andreas Ericsson <ae@op5.se> writes:\n\nAndreas> Randal L. Schwartz wrote:\n>> And then, another \"go-boom\" problem:\n>> % cg-fetch\n>> Hard links don't work - using copy\n>> Fetching head...\n>> cp: illegal option -- d\n\n\nAndreas> I think this was resolved some weeks ago. Perhaps you could try the\nAndreas> latest cogito from git://git.kernel.org/pub/scm/cogito/cogito.git ?\n\nI'm grabbing nearly hourly.\n\n    localhost:~/MIRROR/cogito-GIT % cg-status\n    Heads:\n       >master      22ff47e9b3c5fc8aa2efbc5ac8690b06b868ef6f\n      R origin      22ff47e9b3c5fc8aa2efbc5ac8690b06b868ef6f\n\nError with this version.\n\nAndreas> As for rsync; From the output you posted above, you were setting up\nAndreas> both the repositories on your local machine. Using rsync for those\nAndreas> cases would be pretty stupid.\n\nrsync instead of cp if you really need \"-d\".\n\nAndreas> On a side-note, could you please turn off your spamvertising\nAndreas> auto-reply? It sends me some info about your perl-expertise and\nAndreas> contact-numbers every now and then. It's getting a bit annoying.\n\nIf you email me directly, you'll get that note no more than once per\nmonth.  Some day, I'll create a system to whitelist people that never\nwant to see it again.  Damn TUIT shortage. :)\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":"12355","messageId":"437FDB27.1030709@op5.se","threadId":"2608","inReplyTo":"86y83k6ry0.fsf@blue.stonehenge.com","subject":"Re: still unclear on setting up a repository","fromName":"Andreas Ericsson","fromEmail":"ae@op5.se","sentAt":"2005-11-20T02:10:47Z","receivedAt":"2005-11-20T02:10:47Z","isPatch":false,"sender":{"key":"ae@op5.se","avatar":"https://gravatar.com/avatar/426e89595c75a8f5252dd0c989e5fabe5bcac616e68557427ad9aef6b0ca342a?d=mp&s=160"},"body":"Randal L. Schwartz wrote:\n>>>And then, another \"go-boom\" problem:\n>>>% cg-fetch\n>>>Hard links don't work - using copy\n>>>Fetching head...\n>>>cp: illegal option -- d\n> \n> \n> Andreas> I think this was resolved some weeks ago. Perhaps you could try the\n> Andreas> latest cogito from git://git.kernel.org/pub/scm/cogito/cogito.git ?\n> \n> I'm grabbing nearly hourly.\n> \n>     localhost:~/MIRROR/cogito-GIT % cg-status\n>     Heads:\n>        >master      22ff47e9b3c5fc8aa2efbc5ac8690b06b868ef6f\n>       R origin      22ff47e9b3c5fc8aa2efbc5ac8690b06b868ef6f\n> \n> Error with this version.\n> \n\nYou're right. It was the '-b' option that was removed earlier (which you \nreported as well, ten days ago).\n\n> Andreas> As for rsync; From the output you posted above, you were setting up\n> Andreas> both the repositories on your local machine. Using rsync for those\n> Andreas> cases would be pretty stupid.\n> \n> rsync instead of cp if you really need \"-d\".\n> \n\nThere are other problems with rsync. It would actually be faster to use \nthe git-daemon on localhost than using rsync for operations between two \nlocal repositories.\n\n> Andreas> On a side-note, could you please turn off your spamvertising\n> Andreas> auto-reply? It sends me some info about your perl-expertise and\n> Andreas> contact-numbers every now and then. It's getting a bit annoying.\n> \n> If you email me directly, you'll get that note no more than once per\n> month.  Some day, I'll create a system to whitelist people that never\n> want to see it again.  Damn TUIT shortage. :)\n> \n\nIt's not the amount of mail that annoys me. It's the principle of the \nthing. Perhaps you can use a different email when participating in list \ndiscussions? It's not exactly right to ask others to tell you they don't \nwant your spam after all.\n\n-- \nAndreas Ericsson                   andreas.ericsson@op5.se\nOP5 AB                             www.op5.se\nTel: +46 8-230225                  Fax: +46 8-230231\n"},{"id":"12800","messageId":"20051127145035.GH22159@pasky.or.cz","threadId":"2608","inReplyTo":"86y83k6ry0.fsf@blue.stonehenge.com","subject":"Re: still unclear on setting up a repository","fromName":"Petr Baudis","fromEmail":"pasky@suse.cz","sentAt":"2005-11-27T14:50:35Z","receivedAt":"2005-11-27T14:50:35Z","isPatch":false,"sender":{"key":"pasky@ucw.cz","avatar":"https://avatars.githubusercontent.com/u/18439?v=4"},"body":"Dear diary, on Sun, Nov 20, 2005 at 02:14:47AM CET, I got a letter\nwhere \"Randal L. Schwartz\" <merlyn@stonehenge.com> said that...\n> >>>>> \"Andreas\" == Andreas Ericsson <ae@op5.se> writes:\n> \n> Andreas> Randal L. Schwartz wrote:\n> >> And then, another \"go-boom\" problem:\n> >> % cg-fetch\n> >> Hard links don't work - using copy\n> >> Fetching head...\n> >> cp: illegal option -- d\n> \n> \n> Andreas> I think this was resolved some weeks ago. Perhaps you could try the\n> Andreas> latest cogito from git://git.kernel.org/pub/scm/cogito/cogito.git ?\n> \n> I'm grabbing nearly hourly.\n> \n>     localhost:~/MIRROR/cogito-GIT % cg-status\n>     Heads:\n>        >master      22ff47e9b3c5fc8aa2efbc5ac8690b06b868ef6f\n>       R origin      22ff47e9b3c5fc8aa2efbc5ac8690b06b868ef6f\n> \n> Error with this version.\n\nHmm, right. I changed the -d to -P, which is basically equivalent for\nour situation, and -P is supposed to be POSIX. Thanks.\n\n> Andreas> On a side-note, could you please turn off your spamvertising\n> Andreas> auto-reply? It sends me some info about your perl-expertise and\n> Andreas> contact-numbers every now and then. It's getting a bit annoying.\n> \n> If you email me directly, you'll get that note no more than once per\n> month.  Some day, I'll create a system to whitelist people that never\n> want to see it again.  Damn TUIT shortage. :)\n\nIf you don't want to receive mailing list traffic related to your mails\ndirectly, you can setup your mailer to adjust the 'mail-followup-to'\nheader appropriately and you should stop getting it twice.\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":"12824","messageId":"20051127231529.GM22159@pasky.or.cz","threadId":"2608","inReplyTo":"86br0g883v.fsf@blue.stonehenge.com","subject":"Re: still unclear on setting up a repository","fromName":"Petr Baudis","fromEmail":"pasky@suse.cz","sentAt":"2005-11-27T23:15:29Z","receivedAt":"2005-11-27T23:15:29Z","isPatch":false,"sender":{"key":"pasky@ucw.cz","avatar":"https://avatars.githubusercontent.com/u/18439?v=4"},"body":"Dear diary, on Sun, Nov 20, 2005 at 01:40:20AM CET, I got a letter\nwhere \"Randal L. Schwartz\" <merlyn@stonehenge.com> said that...\n> This seems to report the right thing.  I have a branch \"origin\"\n> that points at the remote repository.  So far, I think I'm understanding\n> what's happening.  But now, go boom:\n> \n>         % cg-push\n>         cg-push: where to push to?\n> \n> Huh?  How do I do the initial push?  Not this way?  Is it me, docs, or\n> code that is broken here?\n\nThe code was broken, cg-push wouldn't default to origin unless you\nalready had an origin head, which you obviously can't have when you are\ngoing to push for the first time. Thanks, 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"}]}