{"thread":{"id":"52293","subject":"git clone git clone some://url","startedAt":"2019-11-19T14:22:57Z","lastAt":"2019-12-05T12:35:29Z","messageCount":8,"participants":["Christoph Berg","Junio C Hamano","Denton Liu","Danh Doan","Jonathan Nieder"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"386516","messageId":"20191119141537.GD18924@msg.df7cb.de","threadId":"52293","inReplyTo":null,"subject":"git clone git clone some://url","fromName":"Christoph Berg","fromEmail":"myon@debian.org","sentAt":"2019-11-19T14:15:37Z","receivedAt":"2019-11-19T14:22:57Z","isPatch":false,"sender":{"key":"myon@debian.org","avatar":"https://gravatar.com/avatar/e584437c1544024f7bc384c6bc771b40ac4336faf91b0bf3d43e9e507863ca9f?d=mp&s=160"},"body":"On some git hosting sites [*], if you copy the repository URL, you'll\nactually get \"git clone some://url\" in the cut buffer. When you then\nproceed to do \"git clone <paste>\" in the next terminal window, the\ncommand executed is actually this:\n\n$ git clone git clone some://url\nfatal: Too many arguments.\n\nAs silly as the idea might sound, could the clone command possibly\nignore these very specific extra arguments, and just proceed? This has\nhappened countless times to me, and when I mentioned the idea on\n#debian-devel, there were others who had the same problem.\n\nThanks,\nChristoph\n\n[*] hello sourceforge! example:\n    https://sourceforge.net/p/wsjt/wsjtx/ci/master/tree/\n"},{"id":"386607","messageId":"xmqqimnfcikf.fsf@gitster-ct.c.googlers.com","threadId":"52293","inReplyTo":"20191119141537.GD18924@msg.df7cb.de","subject":"Re: git clone git clone some://url","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2019-11-20T03:50:24Z","receivedAt":"2019-11-20T03:50:31Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Christoph Berg <myon@debian.org> writes:\n\n> On some git hosting sites [*], if you copy the repository URL, you'll\n> actually get \"git clone some://url\" in the cut buffer. When you then\n> proceed to do \"git clone <paste>\" in the next terminal window, the\n> command executed is actually this:\n>\n> $ git clone git clone some://url\n> fatal: Too many arguments.\n\nOr\n\n    $ git git clone some://usr\n    $ git git git diff\n\n;-)\n\nI seriously doubt \"git\" should do anything funky when fed such\ncommand lines.\n\n"},{"id":"386616","messageId":"20191120064157.GA22081@msg.df7cb.de","threadId":"52293","inReplyTo":"xmqqimnfcikf.fsf@gitster-ct.c.googlers.com","subject":"Re: git clone git clone some://url","fromName":"Christoph Berg","fromEmail":"myon@debian.org","sentAt":"2019-11-20T06:41:58Z","receivedAt":"2019-11-20T06:42:02Z","isPatch":false,"sender":{"key":"myon@debian.org","avatar":"https://gravatar.com/avatar/e584437c1544024f7bc384c6bc771b40ac4336faf91b0bf3d43e9e507863ca9f?d=mp&s=160"},"body":"Re: Junio C Hamano 2019-11-20 <xmqqimnfcikf.fsf@gitster-ct.c.googlers.com>\n> Christoph Berg <myon@debian.org> writes:\n> \n> > On some git hosting sites [*], if you copy the repository URL, you'll\n> > actually get \"git clone some://url\" in the cut buffer. When you then\n> > proceed to do \"git clone <paste>\" in the next terminal window, the\n> > command executed is actually this:\n> >\n> > $ git clone git clone some://url\n> > fatal: Too many arguments.\n> \n> Or\n> \n>     $ git git clone some://usr\n>     $ git git git diff\n> \n> ;-)\n> \n> I seriously doubt \"git\" should do anything funky when fed such\n> command lines.\n\n\"git git git\" is obviously silly. The problem is really just about\nthis single issue:\n\n1. go to some website, copy the git url\n2. type \"git clone\" in the terminal\n3. paste the url, hit enter\n4. be annoyed when you ended up with \"git clone git clone url://\"\n\nChristoph\n"},{"id":"386649","messageId":"20191120180709.GA63368@generichostname","threadId":"52293","inReplyTo":"xmqqimnfcikf.fsf@gitster-ct.c.googlers.com","subject":"Re: git clone git clone some://url","fromName":"Denton Liu","fromEmail":"liu.denton@gmail.com","sentAt":"2019-11-20T18:07:09Z","receivedAt":"2019-11-20T18:07:15Z","isPatch":false,"sender":{"key":"liu.denton@gmail.com","avatar":"https://avatars.githubusercontent.com/u/9620836?v=4"},"body":"On Wed, Nov 20, 2019 at 12:50:24PM +0900, Junio C Hamano wrote:\n> Christoph Berg <myon@debian.org> writes:\n> \n> > On some git hosting sites [*], if you copy the repository URL, you'll\n> > actually get \"git clone some://url\" in the cut buffer. When you then\n> > proceed to do \"git clone <paste>\" in the next terminal window, the\n> > command executed is actually this:\n> >\n> > $ git clone git clone some://url\n> > fatal: Too many arguments.\n> \n> Or\n> \n>     $ git git clone some://usr\n>     $ git git git diff\n\nThat's why I have `git config alias.git !git` set. It's saved me seconds\nof my life from having to retype these lines. ;)\n\nUnfortunately, I don't think we can take a similar approach for the\n`git clone git clone ...` case.\n\n> ;-)\n> \n> I seriously doubt \"git\" should do anything funky when fed such\n> command lines.\n> \n"},{"id":"386725","messageId":"20191121134928.GA1018@danh.dev","threadId":"52293","inReplyTo":"20191120064157.GA22081@msg.df7cb.de","subject":"Re: git clone git clone some://url","fromName":"Danh Doan","fromEmail":"congdanhqx@gmail.com","sentAt":"2019-11-21T13:49:28Z","receivedAt":"2019-11-21T13:49:34Z","isPatch":false,"sender":{"key":"congdanhqx@gmail.com","avatar":"https://avatars.githubusercontent.com/u/42673067?v=4"},"body":"On 2019-11-20 07:41:58+0100, Christoph Berg <myon@debian.org> wrote:\n> Re: Junio C Hamano 2019-11-20 <xmqqimnfcikf.fsf@gitster-ct.c.googlers.com>\n> > Christoph Berg <myon@debian.org> writes:\n> > \n> > > On some git hosting sites [*], if you copy the repository URL, you'll\n> > > actually get \"git clone some://url\" in the cut buffer. When you then\n> > > proceed to do \"git clone <paste>\" in the next terminal window, the\n> > > command executed is actually this:\n> > >\n> > > $ git clone git clone some://url\n> > > fatal: Too many arguments.\n> > \n> > Or\n> > \n> >     $ git git clone some://usr\n> >     $ git git git diff\n> > \n> > ;-)\n> > \n> > I seriously doubt \"git\" should do anything funky when fed such\n> > command lines.\n> \n> \"git git git\" is obviously silly. The problem is really just about\n> this single issue:\n> \n> 1. go to some website, copy the git url\n> 2. type \"git clone\" in the terminal\n> 3. paste the url, hit enter\n> 4. be annoyed when you ended up with \"git clone git clone url://\"\n\nSeriously, people should stop pasting random command from internet\nwithout reading.\n\nSomeone had written about paste-hijacking in the past.\n\nc.f. https://news.ycombinator.com/item?id=10554679\n\n-- \nDanh\n"},{"id":"386797","messageId":"xmqqy2w85utj.fsf@gitster-ct.c.googlers.com","threadId":"52293","inReplyTo":"20191120180709.GA63368@generichostname","subject":"Re: git clone git clone some://url","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2019-11-22T05:44:24Z","receivedAt":"2019-11-22T05:44:33Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Denton Liu <liu.denton@gmail.com> writes:\n\n>> Or\n>> \n>>     $ git git clone some://usr\n>>     $ git git git diff\n>\n> That's why I have `git config alias.git !git` set. It's saved me seconds\n> of my life from having to retype these lines. ;)\n\n;-)\n\nYes, it was the above hack of yours I had in mind when I sent my\nreply.\n"},{"id":"387520","messageId":"20191204214017.GA195537@google.com","threadId":"52293","inReplyTo":"20191119141537.GD18924@msg.df7cb.de","subject":"Re: git clone git clone some://url","fromName":"Jonathan Nieder","fromEmail":"jrnieder@gmail.com","sentAt":"2019-12-04T21:40:17Z","receivedAt":"2019-12-04T21:40:22Z","isPatch":false,"sender":{"key":"jrnieder@gmail.com","avatar":"https://avatars.githubusercontent.com/u/281595?v=4"},"body":"Hi,\n\nChristoph Berg wrote:\n\n> On some git hosting sites [*], if you copy the repository URL, you'll\n> actually get \"git clone some://url\" in the cut buffer. When you then\n> proceed to do \"git clone <paste>\" in the next terminal window, the\n> command executed is actually this:\n>\n> $ git clone git clone some://url\n> fatal: Too many arguments.\n\nI feel your pain.  Is there an issue tracker post or support ticket\nopen for some of these hosting sites to make it do the intuitive thing\n(just copy the URL) instead?\n\nThanks,\nJonathan\n\n> [*] hello sourceforge! example:\n>     https://sourceforge.net/p/wsjt/wsjtx/ci/master/tree/\n"},{"id":"387553","messageId":"20191205123524.GA30724@msg.df7cb.de","threadId":"52293","inReplyTo":"20191204214017.GA195537@google.com","subject":"Re: git clone git clone some://url","fromName":"Christoph Berg","fromEmail":"myon@debian.org","sentAt":"2019-12-05T12:35:24Z","receivedAt":"2019-12-05T12:35:29Z","isPatch":false,"sender":{"key":"myon@debian.org","avatar":"https://gravatar.com/avatar/e584437c1544024f7bc384c6bc771b40ac4336faf91b0bf3d43e9e507863ca9f?d=mp&s=160"},"body":"Re: Jonathan Nieder 2019-12-04 <20191204214017.GA195537@google.com>\n> > $ git clone git clone some://url\n> > fatal: Too many arguments.\n> \n> I feel your pain.  Is there an issue tracker post or support ticket\n> open for some of these hosting sites to make it do the intuitive thing\n> (just copy the URL) instead?\n\nI created one for sf.net now: https://sourceforge.net/p/forge/feature-requests/721/\n\nChristoph\n"}]}