From: Alexandre Julliard Date: Fri, 24 Nov 2006 14:59:12 +0000 (+0100) Subject: git-fetch: Reset shallow_depth before auto-following tags. X-Git-Tag: v1.5.0-rc1~172^2~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d158631549b87e11f2415622e421546539b09b67;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/git-fetch.sh b/git-fetch.sh index 0b1e6d107..f0645d97c 100755 --- a/git-fetch.sh +++ b/git-fetch.sh @@ -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