Skip to content
Snippets Groups Projects
Commit 380ebab2 authored by brian m. carlson's avatar brian m. carlson Committed by Junio C Hamano
Browse files

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: default avatarbrian m. carlson <sandals@crustytoothpaste.net>
[jc: made a reroll into incremental, as the previous one already is
 in the next branch]
Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
parent 23311f35
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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;
}
}
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment