git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Documentation: receive.denyCurrentBranch defaults to 'refuse'

From
Thomas Rast <trast@student.ethz.ch>
Date
Mar 17, 2010, 11:14 UTC
Message-ID
<601e919ea039016fb58543eeee6717a03bf453d5.1268824465.git.trast@student.ethz.ch>

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>
---
 Documentation/config.txt |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Documentation/config.txt b/Documentation/config.txt
index 48d8825..b3b6544 100644
--- a/Documentation/config.txt
+++ b/Documentation/config.txt
@@ -1535,7 +1535,7 @@ receive.denyCurrentBranch::
 	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".
 
 receive.denyNonFastForwards::
 	If set to true, git-receive-pack will deny a ref update which is
-- 
1.7.0.2.454.gdb120
Message 1 of 1 in “Documentation: receive.denyCurrentBranch defaults to 'refuse'”
  1. Documentation: receive.denyCurrentBranch defaults to 'refuse'Thomas Rast, Mar 17, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.