summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d64d6c9)
raw | patch | inline | side by side (parent: d64d6c9)
author | Alexandre Julliard <julliard@winehq.org> | |
Fri, 24 Nov 2006 15:00:13 +0000 (16:00 +0100) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 24 Nov 2006 23:42:50 +0000 (15:42 -0800) |
A better fix may be to only fetch tags that point to commits that we
are downloading, but git-clone doesn't have support for following
tags. This will happen automatically on the next git-fetch though.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
are downloading, but git-clone doesn't have support for following
tags. This will happen automatically on the next git-fetch though.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
fetch-pack.c | patch | blob | history |
diff --git a/fetch-pack.c b/fetch-pack.c
index bb310b644f65116f96d711bd5a145acd2f10fa6a..80979b83beaf17cbc9c225af05ac7f105e3e8435 100644 (file)
--- a/fetch-pack.c
+++ b/fetch-pack.c
if (!memcmp(ref->name, "refs/", 5) &&
check_ref_format(ref->name + 5))
; /* trash */
- else if (fetch_all) {
+ else if (fetch_all &&
+ (!depth || strncmp(ref->name, "refs/tags/", 10) )) {
*newtail = ref;
ref->next = NULL;
newtail = &ref->next;