Skip to content

Commit 662c83f

Browse files
trastgitster
authored andcommitted
Document receive.denyDeleteCurrent
This option was introduced by 747ca24 (receive-pack: receive.denyDeleteCurrent, 2009-02-08) but never documented. Signed-off-by: Thomas Rast <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5d31475 commit 662c83f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Documentation/config.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1558,6 +1558,10 @@ receive.denyDeletes::
15581558
If set to true, git-receive-pack will deny a ref update that deletes
15591559
the ref. Use this to prevent such a ref deletion via a push.
15601560

1561+
receive.denyDeleteCurrent::
1562+
If set to true, git-receive-pack will deny a ref update that
1563+
deletes the currently checked out branch of a non-bare repository.
1564+
15611565
receive.denyCurrentBranch::
15621566
If set to true or "refuse", git-receive-pack will deny a ref update
15631567
to the currently checked out branch of a non-bare repository.

0 commit comments

Comments
 (0)