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

Does cloning a shallow repo require special setting in the cloned one?

From
Rroylee17 <roylee17@gmail.com>
Date
Feb 26, 2009, 03:49 UTC
Message-ID
<1235620146513-2387799.post@n2.nabble.com>
Hi,
I have a question about cloning shallow repo.

$ git clone --depth 1 git://git2.kernel.org/pub/scm/git/git.git git-shallow ok, 'git log' gives a 2-revision history.

$ git clone git://git2.kernel.org/pub/scm/git/git.git git-full 'git log' gives a full history

$ git clone --depth 1 git-full git-shallow2 'git log' still gives a full history

Why can't I clone a shallow repo from the git-full? Does it requires some settings in the git-full repo?

Regards, Roy Roy

-- 
View this message in context: http://n2.nabble.com/Does-cloning-a-shallow-repo-require-special-setting-in-the-cloned-one--tp2387799p2387799.html
Sent from the git mailing list archive at Nabble.com.
Next: Teemu Likonen
Message 1 of 8 in “Does cloning a shallow repo require special setting in the cloned one?”
  1. roylee17Feb 26, 2009
  2. Teemu LikonenFeb 26, 2009
  3. Roy LeeFeb 26, 2009
  4. Jeff KingFeb 26, 2009
  5. Johannes SchindelinFeb 26, 2009
  6. Jeff KingFeb 26, 2009
  7. Roy LeeFeb 26, 2009
  8. Jakub NarebskiFeb 27, 2009

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.