diff --git a/fetch-pack.c b/fetch-pack.c index 2d76287674..a92621a388 100644 --- a/fetch-pack.c +++ b/fetch-pack.c @@ -1272,6 +1272,8 @@ static void receive_shallow_info(struct fetch_pack_args *args, setup_alternate_shallow(&shallow_lock, &alternate_shallow_file, NULL); args->deepen = 1; + } else { + alternate_shallow_file = NULL; } }