From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29953 invoked by alias); 7 Apr 2014 15:44:33 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 29934 invoked by uid 89); 7 Apr 2014 15:44:32 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-Spam-User: qpsmtpd, 2 recipients X-HELO: mx2.suse.de Received: from cantor2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Mon, 07 Apr 2014 15:44:30 +0000 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id BFA4EAB49; Mon, 7 Apr 2014 15:44:27 +0000 (UTC) Date: Mon, 07 Apr 2014 15:44:00 -0000 From: Michael Matz To: Mark Kettenis cc: schwab@suse.de, brobecker@adacore.com, aaro.koskinen@iki.fi, sergiodj@redhat.com, emachado@linux.vnet.ibm.com, gdb@sourceware.org, binutils@sourceware.org, bergner@vnet.ibm.com, tuliom@linux.vnet.ibm.com Subject: Re: Vendor branches on sourceware.org's binutils-gdb repo In-Reply-To: <201404071539.s37FdTVI031363@glazunov.sibelius.xs4all.nl> Message-ID: References: <53406399.9050303@linux.vnet.ibm.com> <20140406191404.GC7558@drone.musicnaut.iki.fi> <20140407035120.GA4186@adacore.com> <201404071452.s37EqLB9024528@glazunov.sibelius.xs4all.nl> <201404071539.s37FdTVI031363@glazunov.sibelius.xs4all.nl> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2014-04/txt/msg00019.txt.bz2 Hi, On Mon, 7 Apr 2014, Mark Kettenis wrote: > > > So how do I tell git to only clone master and not give me everybody > > > else's shit? Last time I tried to do that, it simply didn't work. > > > > git-clone(1): > > > > --[no-]single-branch > > Clone only the history leading to the tip of a single branch, > > either specified by the --branch option or the primary branch > > remote???s HEAD points at. > > But I can't push from a repository cloned like that can I? You can. git fetch will continue to only fetch the named (or default) branch, and git push will only push that branch. It's a normal git repository in all respects, just with the fetch= config variable restricted to just one head (instead of everything under refs/heads/). Ciao, Michael.