From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-3.9 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by dcvr.yhbt.net (Postfix) with ESMTP id 5A7261F4B5 for ; Wed, 20 Nov 2019 06:42:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727175AbfKTGmA (ORCPT ); Wed, 20 Nov 2019 01:42:00 -0500 Received: from feynman.df7cb.de ([195.49.152.168]:55712 "EHLO feynman.df7cb.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726014AbfKTGmA (ORCPT ); Wed, 20 Nov 2019 01:42:00 -0500 Received: from msg.df7cb.de (unknown [IPv6:2a02:908:1473:f520:76e5:bff:fef3:7e00]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by feynman.df7cb.de (Postfix) with ESMTPSA id 47HtQY3Nmyz3Dyp; Wed, 20 Nov 2019 07:41:57 +0100 (CET) Date: Wed, 20 Nov 2019 07:41:58 +0100 From: Christoph Berg To: Junio C Hamano Cc: git@vger.kernel.org Subject: Re: git clone git clone some://url Message-ID: <20191120064157.GA22081@msg.df7cb.de> References: <20191119141537.GD18924@msg.df7cb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Re: Junio C Hamano 2019-11-20 > Christoph Berg writes: > > > 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 " 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. "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