git-fetch: Reset shallow_depth before auto-following tags.
[gitweb.git] / 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