Re: [PATCH] git fetch one tag only

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jun 6, 2012 at 10:47 PM, cheng renquan <crquan@xxxxxxxxx> 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 <tag> means the same as
refs/tags/<tag>:refs/tags/<tag>; 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?
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]