• Josh Steadmon's avatar
    clone: do faster object check for partial clones · dfa33a29
    Josh Steadmon authored
    For partial clones, doing a full connectivity check is wasteful; we skip
    promisor objects (which, for a partial clone, is all known objects), and
    enumerating them all to exclude them from the connectivity check can
    take a significant amount of time on large repos.
    
    At most, we want to make sure that we get the objects referred to by any
    wanted refs. For partial clones, just check that these objects were
    transferred.
    Signed-off-by: 's avatarJosh Steadmon <steadmon@google.com>
    Signed-off-by: 's avatarJunio C Hamano <gitster@pobox.com>
    dfa33a29
connected.c 3.72 KB