init doc: --shared=0xxx does not give umask but perm bits

The description that 0640 makes sure that the group members can read the repository is correct, but calling that octal number a <umask> is wrong. Let's call it <perm>, as the value is used to set the permission bits. Signed-off-by: Junio C Hamano <gitster@pobox.com>

Junio C Hamano committed Nov 6, 2021 at 19:48 UTC f9b2b6684da11df4e1da56af1103e6ef56500618
1 file changed +6 -5
Documentation/git-init.txt
+6 -5
@@ -79,7 +79,7 @@ repository. If not specified, fall back to the default name (currently
79 `master`, but this is subject to change in the future; the name can be
80 customized via the `init.defaultBranch` configuration variable).
81
82 ---shared[=(false|true|umask|group|all|world|everybody|<umask>)]::
82 +--shared[=(false|true|umask|group|all|world|everybody|<perm>)]::
83
84 Specify that the Git repository is to be shared amongst several users. This
85 allows users belonging to the same group to push into that
@@ -110,15 +110,16 @@ the repository permissions.
110
111 Same as 'group', but make the repository readable by all users.
112
113 -'<umask>'::
113 +'<perm>'::
114
115 -'<umask>' is a 3-digit octal number prefixed with `0` and each file
116 -will have mode '<umask>'. '<umask>' will override users' umask(2)
115 +'<perm>' is a 3-digit octal number prefixed with `0` and each file
116 +will have mode '<perm>'. '<perm>' will override users' umask(2)
117 value (and not only loosen permissions as 'group' and 'all'
118 does). '0640' will create a repository which is group-readable, but
119 not group-writable or accessible to others. '0660' will create a repo
120 that is readable and writable to the current user and group, but
121 -inaccessible to others.
121 +inaccessible to others (directories and executable files get their
122 +`x` bit from the `r` bit for corresponding classes of users).
123 --
124
125 By default, the configuration flag `receive.denyNonFastForwards` is enabled