Re: [PATCH] fetch-pack: test explicitly that --all can fetch tag references pointing to non-commits
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 14, 2018, 16:07 UTC
- Message-ID
- <xmqqzhzx4aip.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <20180614052455.GA2861@deco.navytux.spb.ru>
Kirill Smelkov <kirr@nexedi.com> writes:
Show 5 quoted lines
> Jeff, thanks for corrections. I originally tried to look into invoking > "git tag" two times, but since git tag always creates a reference it > would not be semantically the same as having one referenced tag object > pointing to another tag object which does not have anything in refs/ > pointing to it directly.
Well, then you could remove it after you are done, no? I.e.
git tag -a -m "tag to commit" tag-to-commit HEAD git tag -a -m "tag to commit (1)" temp-tag HEAD~1 git tag -a -m "tag to tag" tag-to-tag temp-tag git tag -d temp-tag
would make the temp-tag object reachable only via refs/tags/tag-to-tag I think.