From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: Failed to clone net-next.git Date: Tue, 08 May 2018 20:04:42 -0400 (EDT) Message-ID: <20180508.200442.76151477268117595.davem@davemloft.net> References: Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, ast@fb.com, konstantin@linuxfoundation.org To: songliubraving@fb.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:37426 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754148AbeEIAEq (ORCPT ); Tue, 8 May 2018 20:04:46 -0400 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: From: Song Liu Date: Tue, 8 May 2018 17:46:23 +0000 > We are seeing the following error on multiple different systems while > cloning net-next tree. > > $ git clone https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git > Cloning into 'net-next'... Regardless of the failure, it is so _insanely_ wasteful to clone my trees like this. Just simply always have Linus's tree always checked out somewhere: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git Let's say you have it under src/GIT/linux as I do. Then go to src/GIT and say: git clone --reference linux/.git https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git This way it only downloads the objects that are unique to the net-next tree. Similarly for 'net': git clone --reference linux/.git https://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git Or any other subsystem tree. Periodically "git pull --ff-only" your Linus's tree, and you'll be much happier in GIT land :-) As subsystem changes make their way into Linus's GIT tree, git will notice over time and garbage collect the dups that are in your subsystem GIT trees.