@matheusbsbs / matheus-bagliano / commits / d158631549
Fork 0

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>

Alexandre Julliard committed Nov 24, 2006 at 15:59 UTC d158631549b87e11f2415622e421546539b09b67
1 file changed +2
git-fetch.sh
+2
@@ -461,6 +461,8 @@ case "$no_tags$tags" in
461 case "$taglist" in
462 '') ;;
463 ?*)
464 + # do not deepen a shallow tree when following tags
465 + shallow_depth=
466 fetch_main "$taglist" ;;
467 esac
468 esac