{"thread":{"id":"32859","subject":"[PATCH] user-manual: Update for receive.denyCurrentBranch=refuse","startedAt":"2013-02-08T17:04:20Z","lastAt":"2013-02-08T17:04:20Z","messageCount":1,"participants":["W. Trevor King"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"209013","messageId":"d1f3f900d4886dca727a2176b606e3b76ef9369e.1360343016.git.wking@tremily.us","threadId":"32859","inReplyTo":null,"subject":"[PATCH] user-manual: Update for receive.denyCurrentBranch=refuse","fromName":"W. Trevor King","fromEmail":"wking@tremily.us","sentAt":"2013-02-08T17:04:20Z","receivedAt":"2013-02-08T17:04:20Z","isPatch":true,"sender":{"key":"wking@tremily.us","avatar":"https://avatars.githubusercontent.com/u/209920?v=4"},"body":"From: \"W. Trevor King\" <wking@tremily.us>\n\nacd2a45 (Refuse updating the current branch in a non-bare repository\nvia push, 2009-02-11) changed the default to refuse such a push, but\nit forgot to update the docs.\n\n7d182f5 (Documentation: receive.denyCurrentBranch defaults to\n'refuse', 2010-03-17) updated Documentation/config.txt, but forgot to\nupdate the user manual.\n\nSigned-off-by: W. Trevor King <wking@tremily.us>\n---\n Documentation/user-manual.txt | 6 ++++--\n 1 file changed, 4 insertions(+), 2 deletions(-)\n\ndiff --git a/Documentation/user-manual.txt b/Documentation/user-manual.txt\nindex 5077e7c..8e55794 100644\n--- a/Documentation/user-manual.txt\n+++ b/Documentation/user-manual.txt\n@@ -1994,8 +1994,10 @@ handling this case.\n Note that the target of a \"push\" is normally a\n <<def_bare_repository,bare>> repository.  You can also push to a\n repository that has a checked-out working tree, but the working tree\n-will not be updated by the push.  This may lead to unexpected results if\n-the branch you push to is the currently checked-out branch!\n+will not be updated by the push.  To protect against this, pushes to\n+the currently checked-out branch of a repository are denied by\n+default.  See the description of the receive.denyCurrentBranch option\n+in linkgit:git-config[1] for details.\n \n As with `git fetch`, you may also set up configuration options to\n save typing; so, for example, after\n-- \n1.8.1.336.g94702dd\n"}]}