From: cheng renquan Date: Thu, 07 Jun 2012 16:11:00 GMT Subject: Re: [PATCH] git fetch one tag only Message-ID: In-Reply-To: On Wed, Jun 6, 2012 at 10:47 PM, cheng renquan wrote: > ok, got it: > > $ git fetch -v --no-tags linux-stable tag v3.4.1 > From git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable >  = [up to date]      v3.4.1     -> v3.4.1 Here I still think the logic is wrong: $ git fetch linux-stable tag fatal: You need to specify a tag name. $ git fetch linux-stable tag v3.4.1 [this would actually fetch all tags] from `git help fetch`: Some short-cut notations are also supported. · tag means the same as refs/tags/:refs/tags/; it requests fetching everything up to the given tag. Here the documentation is saying "everything up to the given tag.", but other tags can never be all belonging to that path, for above example, in the path up to given tag v3.4.1, I'm sure other tags like v3.3.1 are not in the path; So the `git fetch linux-stable tag v3.4.1` fetched other tags is a WRONG behavior, and why can't we fix that by disabling auto-following automatically if use tag syntax? Why to the user "--no-tags" is explicitly required?