From: Junio C Hamano Date: Thu, 21 Jul 2011 16:36:55 GMT Subject: Re: git fetch --all --depth Message-ID: <7v1uxj4ml4.fsf@alter.siamese.dyndns.org> In-Reply-To: <20110720223902.GA6675@camk.edu.pl> Kacper Kornet writes: > I have just discovered that when I use: > > git fetch --all --depth= > > the history is not deepened. Is the any specific reason for it or is it > a bug? The above is not specific enough to judge if you found a bug or if it is a user error. IIRC, --depth= is not "deepen by ", but "make sure I have at least from the updated tip(s)". The shallow-clone hack gives you quite useless (even though it may be internally consistent) semantics if you shallow-cloned way in the past and fetched with --depth after the other side added many more commits than , as you cannot guess what the right value of should be without actually fetching without --depth.