Skip to content

Commit 7d182f5

Browse files
trastgitster
authored andcommitted
Documentation: receive.denyCurrentBranch defaults to 'refuse'
acd2a45 (Refuse updating the current branch in a non-bare repository via push, 2009-02-11) changed the default to refuse such a push, but it forgot to update the docs. Signed-off-by: Thomas Rast <trast@student.ethz.ch> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent d23e757 commit 7d182f5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Documentation/config.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1442,7 +1442,7 @@ receive.denyCurrentBranch::
14421442
out of sync with the index and working tree. If set to "warn",
14431443
print a warning of such a push to stderr, but allow the push to
14441444
proceed. If set to false or "ignore", allow such pushes with no
1445-
message. Defaults to "warn".
1445+
message. Defaults to "refuse".
14461446

14471447
receive.denyNonFastForwards::
14481448
If set to true, git-receive-pack will deny a ref update which is

0 commit comments

Comments
 (0)