Re: [BUG?] git fetch -p -t prunes all non-tag refs
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 26, 2011, 22:30 UTC
- Message-ID
- <7vehz30wdy.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <20110926184739.GA11745@erythro.kitwarein.com>
Ben Boeckel <mathstuf@gmail.com> writes:
> When the --prune and --tags options are given to git fetch together, all > non-tag refs are pruned because only tags are looked at and when pruning > it appears as if the branches have disappeared and are therefore deleted > locally.
I would call that a bug, and it is not limited to the use of "--tags". For example, I suspect that
$ git fetch --prune origin refs/heads/master:refs/remotes/origin/master
would prune remote tracking branches for "origin" other than "master".