Johannes Schindelin <johannes.schindelin@xxxxxx> writes: > diff --git a/builtin/clone.c b/builtin/clone.c > index 578da85..cc896e2 100644 > --- a/builtin/clone.c > +++ b/builtin/clone.c > @@ -1064,8 +1064,10 @@ int cmd_clone(int argc, const char **argv, const char *prefix) > transport_unlock_pack(transport); > transport_disconnect(transport); > > - if (option_dissociate) > + if (option_dissociate) { > + close_all_packs(); > dissociate_from_references(); > + } Much simpler and looks very good. -- 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