git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 4/5] git-fetch: Reset shallow_depth before auto-following tags.
@ 2006-11-24 14:59 Alexandre Julliard
  0 siblings, 0 replies; only message in thread
From: Alexandre Julliard @ 2006-11-24 14:59 UTC (permalink / raw)
  To: git

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>
---
 git-fetch.sh |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/git-fetch.sh b/git-fetch.sh
index 0b1e6d1..f0645d9 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
-- 
1.4.4.1.ga335e

-- 
Alexandre Julliard

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2006-11-24 14:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-24 14:59 [PATCH 4/5] git-fetch: Reset shallow_depth before auto-following tags Alexandre Julliard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).