git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 4/5] git-fetch: Reset shallow_depth before auto-following tags.

From
AJAlexandre Julliard <julliard@winehq.org>
Date
Nov 24, 2006, 14:59 UTC
Message-ID
<87odqwubzz.fsf@wine.dyndns.org>

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
Message 1 of 1 in “git-fetch: Reset shallow_depth before auto-following tags.”
  1. 4/5 git-fetch: Reset shallow_depth before auto-following tags.Alexandre Julliard, Nov 24, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.