git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: 'Deepen' after "git clone --depth=1"?

From
YKYuriy Kaminskiy <yumkam@mail.ru>
Date
Mar 1, 2010, 11:13 UTC
Message-ID
<hmg7gf$gq9$1@dough.gmane.org>
In-Reply-To
<81f018ac1002281955g1461abb3q815f9a45c13fb515@mail.gmail.com>
On 01.03.2010 06:55, Phil Miller wrote:
Show 10 quoted lines
> Suppose I want to make a shallow clone of a repository for some
> size-sensitive application. I may later want to fill out the complete
> history of that repository, so that I can work with it as if I had
> done a full-depth clone to begin with. Is there an existing porcelain
> command/option to produce that effect? If not, is there a fundamental
> reason why this couldn't be implemented? It looks like this is
> something fetch-pack should be able to do, but its documentation
> doesn't seem to describe how. Also, the man page for fetch appears to
> lie, in that --depth=n (where n is greater than the clone depth)
> doesn't have any noticeable effect.
Last time I've tried (1.6.x),
   git fetch --depth=n
indeed, did nothing, but
   git fetch --depth=n origin master
worked (deepened history; but it seems it redownloaded (some) objects).
> If the answer is simply "no one's written the code to do it yet", I'll
> be happy to provide the necessary round tuits.
Previous: Phil Miller
Message 2 of 2 in “'Deepen' after "git clone --depth=1"?”
  1. Phil MillerMar 1, 2010
  2. Yuriy KaminskiyMar 1, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.