Skip to contentSkip to conversation

git-fetch: Reset shallow_depth before auto-following tags.

PATCH In review Alexandre Julliard 1 participant 1 message Aug 11, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 4/5 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.

---
 git-fetch.sh |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
git-fetch.sh +2 -0
index 0b1e6d1..f0645d9 100755
@@ -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
Signature · 4 lines
1.4.4.1.ga335e

-- 
Alexandre Julliard