Thomas Rast  committed 7d182f5

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 <>
Signed-off-by: Junio C Hamano <>

  • Participants
  • Parent commits d23e757

Comments (0)

Files changed (1)

File Documentation/config.txt

 	out of sync with the index and working tree. If set to "warn",
 	print a warning of such a push to stderr, but allow the push to
 	proceed. If set to false or "ignore", allow such pushes with no
-	message. Defaults to "warn".
+	message. Defaults to "refuse".
 	If set to true, git-receive-pack will deny a ref update which is