aboutsummaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJan Krüger <jk@jk.gs>2008-11-01 15:42:16 +0100
committerJunio C Hamano <gitster@pobox.com>2008-11-02 01:54:28 -0700
commita240de1137bd63a969c6bd56ab5186d7216e28ca (patch)
tree6a876638cfc09ee414599b0d4dae46eca7b10105 /Documentation
parentaebd173ffa7a4e67447f0157a14abde7767c54e9 (diff)
downloadgit-a240de1137bd63a969c6bd56ab5186d7216e28ca.tar.gz
git-a240de1137bd63a969c6bd56ab5186d7216e28ca.tar.xz
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. Signed-off-by: Jan Krüger <jk@jk.gs> Acked-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/config.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/config.txt b/Documentation/config.txt
index 29369d051..965ed746d 100644
--- a/Documentation/config.txt
+++ b/Documentation/config.txt
@@ -1188,6 +1188,10 @@ receive.unpackLimit::
especially on slow filesystems. If not set, the value of
`transfer.unpackLimit` is used instead.
+receive.denyDeletes::
+ If set to true, git-receive-pack will deny a ref update that deletes
+ the ref. Use this to prevent such a ref deletion via a push.
+
receive.denyNonFastForwards::
If set to true, git-receive-pack will deny a ref update which is
not a fast forward. Use this to prevent such an update via a push,