git clone git clone some://url
On some git hosting sites [*], if you copy the repository URL, you'll actually get "git clone some://url" in the cut buffer. When you then proceed to do "git clone <paste>" in the next terminal window, the command executed is actually this:
$ git clone git clone some://url fatal: Too many arguments.
As silly as the idea might sound, could the clone command possibly ignore these very specific extra arguments, and just proceed? This has happened countless times to me, and when I mentioned the idea on #debian-devel, there were others who had the same problem.
Thanks,
Christoph
[*] hello sourceforge! example:
https://sourceforge.net/p/wsjt/wsjtx/ci/master/tree/
Quoted 7 lines · Christoph Berg
On some git hosting sites [*], if you copy the repository URL, you'll actually get "git clone some://url" in the cut buffer. When you then proceed to do "git clone <paste>" in the next terminal window, the command executed is actually this:
$ git clone git clone some://url fatal: Too many arguments.
Or
$ git git clone some://usr
$ git git git diff;-)
I seriously doubt "git" should do anything funky when fed such command lines.
Re: Junio C Hamano 2019-11-20 <[email protected]>
Quoted 12 lines
Quoted 7 lines · Christoph Berg
On some git hosting sites [*], if you copy the repository URL, you'll actually get "git clone some://url" in the cut buffer. When you then proceed to do "git clone <paste>" in the next terminal window, the command executed is actually this:
$ git clone git clone some://url fatal: Too many arguments.Or
Quoted 7 lines
$ git git clone some://usr $ git git git diff;-)
I seriously doubt "git" should do anything funky when fed such command lines.
"git git git" is obviously silly. The problem is really just about this single issue:
1. go to some website, copy the git url
2. type "git clone" in the terminal
3. paste the url, hit enter
4. be annoyed when you ended up with "git clone git clone url://"
Christoph
Quoted 21 lines · Christoph Berg
Re: Junio C Hamano 2019-11-20 <[email protected]>
Quoted 12 lines
Quoted 7 lines · Christoph Berg
On some git hosting sites [*], if you copy the repository URL, you'll actually get "git clone some://url" in the cut buffer. When you then proceed to do "git clone <paste>" in the next terminal window, the command executed is actually this:
$ git clone git clone some://url fatal: Too many arguments.Or
Quoted 7 lines
$ git git clone some://usr $ git git git diff;-)
I seriously doubt "git" should do anything funky when fed such command lines.
Quoted 7 lines
"git git git" is obviously silly. The problem is really just about this single issue:
1. go to some website, copy the git url
2. type "git clone" in the terminal
3. paste the url, hit enter
4. be annoyed when you ended up with "git clone git clone url://"
Seriously, people should stop pasting random command from internet without reading.
Someone had written about paste-hijacking in the past.
c.f. https://news.ycombinator.com/item?id=10554679
Signature · 1 line
Danh
Quoted 7 lines · Junio C Hamano
Quoted 5 lines · Christoph Berg
On some git hosting sites [*], if you copy the repository URL, you'll actually get "git clone some://url" in the cut buffer. When you then proceed to do "git clone <paste>" in the next terminal window, the command executed is actually this:
Quoted 7 lines
Quoted 2 lines
$ git clone git clone some://url fatal: Too many arguments.Or
$ git git clone some://usr $ git git git diff
That's why I have git config alias.git !git set. It's saved me seconds of my life from having to retype these lines. ;)
Unfortunately, I don't think we can take a similar approach for the git clone git clone ... case.
Quoted 5 lines
;-)
I seriously doubt "git" should do anything funky when fed such command lines.
Quoted 7 lines · Denton Liu
Quoted 4 lines
Or
$ git git clone some://usr $ git git git diffThat's why I have
git config alias.git !gitset. It's saved me seconds of my life from having to retype these lines. ;)
;-)
Yes, it was the above hack of yours I had in mind when I sent my reply.
Hi,
Quoted 7 lines · Christoph Berg
On some git hosting sites [*], if you copy the repository URL, you'll actually get "git clone some://url" in the cut buffer. When you then proceed to do "git clone <paste>" in the next terminal window, the command executed is actually this:
$ git clone git clone some://url fatal: Too many arguments.
I feel your pain. Is there an issue tracker post or support ticket open for some of these hosting sites to make it do the intuitive thing (just copy the URL) instead?
Thanks,
Jonathan
Quoted 2 lines
[*] hello sourceforge! example:
https://sourceforge.net/p/wsjt/wsjtx/ci/master/tree/
Re: Jonathan Nieder 2019-12-04 <[email protected]>
Quoted 6 lines
Quoted 2 lines
$ git clone git clone some://url fatal: Too many arguments.I feel your pain. Is there an issue tracker post or support ticket open for some of these hosting sites to make it do the intuitive thing (just copy the URL) instead?
I created one for sf.net now: https://sourceforge.net/p/forge/feature-requests/721/
Christoph