Skip to content

Commit d9be248

Browse files
wkinggitster
authored andcommitted
user-manual: Update for receive.denyCurrentBranch=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. 7d182f5 (Documentation: receive.denyCurrentBranch defaults to 'refuse', 2010-03-17) updated Documentation/config.txt, but forgot to update the user manual. Signed-off-by: W. Trevor King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7e20105 commit d9be248

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Documentation/user-manual.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1986,9 +1986,10 @@ handling this case.
19861986

19871987
Note that the target of a "push" is normally a
19881988
<<def_bare_repository,bare>> repository. You can also push to a
1989-
repository that has a checked-out working tree, but the working tree
1990-
will not be updated by the push. This may lead to unexpected results if
1991-
the branch you push to is the currently checked-out branch!
1989+
repository that has a checked-out working tree, but a push to update the
1990+
currently checked-out branch is denied by default to prevent confusion.
1991+
See the description ofthe receive.denyCurrentBranch option
1992+
in linkgit:git-config[1] for details.
19921993

19931994
As with `git fetch`, you may also set up configuration options to
19941995
save typing; so, for example, after

0 commit comments

Comments
 (0)