Re: [PATCH v2 4/4] clone --dissociate: avoid locking pack files
Johannes Schindelin <johannes.schindelin@gmx.de> writes:
Show 13 quoted lines
> 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.