threads / patch / 23045

patchDocumentation: receive.denyCurrentBranch defaults to 'refuse'

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

## tl;dr

One message between Mar 17, 2010 and Mar 17, 2010. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Thomas Rast· Mar 17, 2010, 11:14 UTC · lore

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(-)
Show changes to Documentation/config.txt +1 −1
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

← back to recent threads