git-fetch: Reset shallow_depth before auto-following tags.

Otherwise fetching the tags could also fetch commits up to the
specified depth, which isn't the expected behavior.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Alexandre Julliard 2006-11-24 15:59:12 +01:00 committed by Junio C Hamano
parent 1f2de76981
commit d158631549

View file

@ -461,6 +461,8 @@ case "$no_tags$tags" in
case "$taglist" in
'') ;;
?*)
# do not deepen a shallow tree when following tags
shallow_depth=
fetch_main "$taglist" ;;
esac
esac