Re: [PATCH] fix sample update hook, disable overwriting of existing tags
- From
Junio C Hamano <gitster@pobox.com>
- Date
- May 8, 2009, 00:05 UTC
- Message-ID
- <7vzldobgrm.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <20090507164023.GB5807@macbook.lan>
Heiko Voigt <hvoigt@hvoigt.net> writes:
> Because no special rule for this existed it was allowed by default
I do not disagree that it is a good thing to be able to reject overwriting, but I do not think it is a _fix_. allowdeletetag is about _deletion_ and it already is covered by the code, isn't it?
I think it would make more sense to introduce $allowmodifytag and reject such pushes in the codepath you touched.