Re: [BUG] git remote prune removes local tags, depending on fetch config
- From
Andreas Schwab <schwab@linux-m68k.org>
- Date
- Jan 16, 2018, 11:48 UTC
- Message-ID
- <874lnmkorz.fsf@linux-m68k.org>
- In-Reply-To
- <CACi5S_33F7VVRYiBOQsxgg_ZPOg9ZvhLZ26bStYWiq7n96aeug@mail.gmail.com>
On Jan 15 2018, Michael Giuffrida <michaelpg@chromium.org> wrote:
> It doesn't seem like a useful feature -- you wouldn't expect `git > fetch --prune` to remove your local branches that you were developing > on, right?
Don't mix local and remote refs. There is a reason why remote tracking branches are put in a separate name space. If you fetch the remote tags into a separate name space (eg. refs/remote/tags/*:refs/tags/*) then there is no conflict.
Andreas.
-- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."