threads / discuss / 25175

Shouldn't git fetch also fetch the tags?

Subject: Shouldn't git fetch also fetch the tags?

## tl;dr

2 messages between Sep 20, 2010 and Sep 21, 2010.

replies: 1people: 2as markdown or json

Felipe Contreras· Sep 20, 2010, 23:00 UTC · lore
Hi,

Usually when I do 'git fetch' the tags are fetched too, however, there is one repo: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.35.y

Where it doesn't happen, and I manually have to 'git fetch --tags'.
What's going on?
-- 
Felipe Contreras
Kevin Ballard· Sep 21, 2010, 01:03 UTC · re: Felipe Contreras · lore

Re: Shouldn't git fetch also fetch the tags?

`git fetch` will fetch any tags that are reachable from any refs that were fetched. It will not fetch tags that are not otherwise reachable. `git fetch --tags` explicitly instructs git fetch to fetch all tags.
-Kevin Ballard
On Sep 20, 2010, at 4:00 PM, Felipe Contreras wrote:
Show 16 quoted lines
> Hi,
> 
> Usually when I do 'git fetch' the tags are fetched too, however, there
> is one repo:
> git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.35.y
> 
> Where it doesn't happen, and I manually have to 'git fetch --tags'.
> 
> What's going on?
> 
> -- 
> Felipe Contreras
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

← back to recent threads