Re: [PATCH 07/11] git-fetch: Limit automated tag following to only fetched objects
- From
Johannes Sixt <j.sixt@viscovery.net>
- Date
- Nov 9, 2007, 11:28 UTC
- Message-ID
- <4734445C.6000303@viscovery.net>
- In-Reply-To
- <20071109110631.GG19368@spearce.org>
Shawn O. Pearce schrieb:
Show 7 quoted lines
> Some of the test vectors for t5515 were affected by this as they > were listing "not-for-merge" tags in .git/FETCH_HEAD that were > being fetched under the old rule but are now not fetched under the > new rule. To be perfectly honest I have no idea why they were even > fetching under the old rule, and I think that's part of the problem > with the old rule. It was very difficult to understand why some > things would auto-follow a tag and others wouldn't.
The old rule was:
Fetch a tag if we have the object that the tag refers to.
So, If you have an object lingering in your repo, even if it is not accessible by any of the refs - eg. it's a left-over from a previous fetch - then the tag was fetched again.
-- Hannes