Code

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 0b1e6d1071350af34e95a402d7ef53f00d03d8a4..f0645d97c91e1151354b737bb3259313dd07fed8 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