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>

brian m. carlson committed Feb 6, 2019 at 23:59 UTC 380ebab209bc444e7a8ed0e914a4c6d7440b1d29
1 file changed +2
fetch-pack.c
+2
@@ -1272,6 +1272,8 @@ static void receive_shallow_info(struct fetch_pack_args *args,
1272 setup_alternate_shallow(&shallow_lock, &alternate_shallow_file,
1273 NULL);
1274 args->deepen = 1;
1275 + } else {
1276 + alternate_shallow_file = NULL;
1277 }
1278 }
1279