From: Junio C Hamano <gitster@pobox.com>
To: Jerome DE VIVIE <j.devivie@prometil.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] tag deletions not rejected with receive.denyDeletes= true
Date: Fri, 09 Dec 2011 11:15:37 -0800 [thread overview]
Message-ID: <7vy5uleeue.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <18683796.591323420674000.JavaMail.root@promailix.prometil.com> (Jerome DE VIVIE's message of "Fri, 9 Dec 2011 09:51:14 +0100 (CET)")
Jerome DE VIVIE <j.devivie@prometil.com> writes:
> Hello,
>
> I have try to deny tag deletion over push using denyDeletes parameter:
>
> git config --system receive.denyDeletes true
> git daemon --reuseaddr --base-path=.. --export-all --verbose --enable=receive-pack
>
> I can push tag deletions despite what the internet says (http://progit.org/book/ch7-1.html#receivedenydeletes). I don't know if it is a bug. Could you have a look, pls ? Thank you
The code seems to be written in such a way that it _explicitly_ wants to
limit the effect of the configuration only to branches. The change was
introduced by a240de1 (Introduce receive.denyDeletes, 2008-11-01) and the
motivation was explained as:
Introduce receive.denyDeletes
Occasionally, it may be useful to prevent branches from getting deleted from
a centralized repository, particularly when no administrative access to the
server is available to undo it via reflog. It also makes
receive.denyNonFastForwards more useful if it is used for access control
since it prevents force-updating by deleting and re-creating a ref.
So I would have to say your "the internet" is wrong.
Our documentation can also use some updates, as it dates to the days back
when we more liberally used "refs" and "branches" interchangeably.
next prev parent reply other threads:[~2011-12-09 19:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <18285669.571323420520289.JavaMail.root@promailix.prometil.com>
2011-12-09 8:51 ` [PATCH] tag deletions not rejected with receive.denyDeletes= true Jerome DE VIVIE
2011-12-09 19:15 ` Junio C Hamano [this message]
[not found] <6271653.2751323698446271.JavaMail.root@promailix.prometil.com>
2011-12-12 14:06 ` Jerome DE VIVIE
2011-12-12 17:16 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7vy5uleeue.fsf@alter.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=j.devivie@prometil.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.