Re: git-2.51.0: Fetching tags does not work
- From
- David Bohman <debohman@gmail.com>
- Date
- Nov 3, 2025, 00:47 UTC
- Message-ID
- <CAB9xhmPw6P1J2a3P+btUT1chhNQrhcx3pSkq+vqZbhFhCqcX9w@mail.gmail.com>
- In-Reply-To
- <xmqqcy8418me.fsf@gitster.g>
I am sorry to have to bring this up again, but I am still occasionally seeing this problem with git 2.51.2.
What is happening is that I am cloning a repository as bare, and then later I try to fetch the new content including the tags:
% ( cd bind9.git; git fetch --tags ) From https://gitlab.isc.org/isc-projects/bind9 * branch HEAD -> FETCH_HEAD ! [rejected] stable -> stable (would clobber existing tag) * [new tag] v9.18.41 -> v9.18.41 * [new tag] v9.20.15 -> v9.20.15 * [new tag] v9.21.14 -> v9.21.14 % ( cd bind9.git; git fetch --tags ) From https://gitlab.isc.org/isc-projects/bind9 * branch HEAD -> FETCH_HEAD ! [rejected] stable -> stable (would clobber existing tag) * [new tag] v9.18.41 -> v9.18.41 * [new tag] v9.20.15 -> v9.20.15 * [new tag] v9.21.14 -> v9.21.14 % print $? 1 % ( cd bind9.git; git tag ) | grep v9.20.15 %
As you can see, it is getting an error for one of the tags, but it is also failing to record the other new tags into the repository.