Re: [BUG] git fetch fetches tags matching negative refspec

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

 



On Wed, Oct 12, 2022 at 11:13 AM Ævar Arnfjörð Bjarmason
<avarab@xxxxxxxxx> wrote:
> I.e. it got stuff you asked for, but also tags pointing at the main
> history, --no-tags will stop that, at which point you can *also* fetch
> tags, just with the refspec.
I tried but
  git fetch --no-tags
with negative refspec did not fetch any tags.
  git fetch --tags
does.

I'm going to set
  git config remote.origin.tagopt --tags
and then that's going to do what I want.

Thank you for pointing me in the right direction and giving clarity.

> I haven't had time to try this, but I believe this isn't a bug, it's
> just that you didn't supply --no-tags.
I guess then everything works as expected but maybe the documentation
regarding this could be improved.



[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]

  Powered by Linux