> On Wed, Jun 10, 2015 at 3:05 PM, Jeff King <peff@xxxxxxxx> wrote: > I see that do_fetch_pack checks server_supports("shallow"). Is that > enough to cover all fetch cases? And if it is, why does it not cover the > matching clone cases? > -Peff Great question. I determined that the do_fetch_pack logic doesn't work for clones because it also checks is_repository_shallow(), which looks for the .git/shallow file (or the alternate file). I considered changing clone to create an empty .git/shallow file or alternate, but it turns out that an empty shallow file is treated as no shallow file at all. Since at this stage in cloning we have nothing to put in the shallow file, it seemed like any other fix would require more substantial changes. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html