git-fetch: follow tag only when tracking remote branch. v1.2.3
authorJunio C Hamano <junkio@cox.net>
Wed, 22 Feb 2006 21:10:37 +0000 (13:10 -0800)
committerJunio C Hamano <junkio@cox.net>
Thu, 23 Feb 2006 00:04:08 +0000 (16:04 -0800)
commit6dc78e696b8597204b903073da932fc5ed0f419e
treef365a0367a7fa827160b50c488f1dc2626fb1220
parent183bdb2cccff792f11fd9e825df67af446aff171
git-fetch: follow tag only when tracking remote branch.

Unless --no-tags flag was given, git-fetch tried to always
follow remote tags that point at the commits we picked up.

It is not very useful to pick up tags from remote unless storing
the fetched branch head in a local tracking branch.  This is
especially true if the fetch is done to merge the remote branch
into our current branch as one-shot basis (i.e. "please pull"),
and is even harmful if the remote repository has many irrelevant
tags.

This proposed update disables the automated tag following unless
we are storing the a fetched branch head in a local tracking
branch.

Signed-off-by: Junio C Hamano <junkio@cox.net>
git-fetch.sh