fetch-pack: clear alternate shallow in one more place
The previous one did not clear the variable in one codepath, but we should aim to be complete. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> [jc: made a reroll into incremental, as the previous one already is in the next branch] Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
23311f3542
commit
380ebab209
@ -1272,6 +1272,8 @@ static void receive_shallow_info(struct fetch_pack_args *args,
|
|||||||
setup_alternate_shallow(&shallow_lock, &alternate_shallow_file,
|
setup_alternate_shallow(&shallow_lock, &alternate_shallow_file,
|
||||||
NULL);
|
NULL);
|
||||||
args->deepen = 1;
|
args->deepen = 1;
|
||||||
|
} else {
|
||||||
|
alternate_shallow_file = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user