]> Kevux Git Server - rit/commitdiff
git-fetch: Reset shallow_depth before auto-following tags.
authorAlexandre Julliard <julliard@winehq.org>
Fri, 24 Nov 2006 14:59:12 +0000 (15:59 +0100)
committerJunio C Hamano <junkio@cox.net>
Fri, 24 Nov 2006 23:42:50 +0000 (15:42 -0800)
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>
git-fetch.sh

index 0b1e6d1..f0645d9 100755 (executable)
@@ -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