summaryrefslogtreecommitdiffstats
path: root/git.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-12-27 14:37:27 -0800
committerJunio C Hamano <gitster@pobox.com>2016-12-27 14:37:27 -0800
commit9e35abf2be7349a7bcfc5580b01ee69d5718b008 (patch)
treeb9710fbeb66a9bf2dc66a1d9bde1dc9f8d70c117 /git.txt
parent9ed6ab2660c4c57f561ad34ad87a4b547d32d271 (diff)
downloadgit-htmldocs-9e35abf2be7349a7bcfc5580b01ee69d5718b008.tar.gz
Autogenerated HTML docs for v2.11.0-258-ge0580
Diffstat (limited to 'git.txt')
-rw-r--r--git.txt38
1 files changed, 14 insertions, 24 deletions
diff --git a/git.txt b/git.txt
index 98033302b..ba222f68c 100644
--- a/git.txt
+++ b/git.txt
@@ -1161,30 +1161,20 @@ of clones and fetches.
cloning a repository to make a backup).
`GIT_ALLOW_PROTOCOL`::
- If set, provide a colon-separated list of protocols which are
- allowed to be used with fetch/push/clone. This is useful to
- restrict recursive submodule initialization from an untrusted
- repository. Any protocol not mentioned will be disallowed (i.e.,
- this is a whitelist, not a blacklist). If the variable is not
- set at all, all protocols are enabled. The protocol names
- currently used by git are:
-
- - `file`: any local file-based path (including `file://` URLs,
- or local paths)
-
- - `git`: the anonymous git protocol over a direct TCP
- connection (or proxy, if configured)
-
- - `ssh`: git over ssh (including `host:path` syntax,
- `ssh://`, etc).
-
- - `http`: git over http, both "smart http" and "dumb http".
- Note that this does _not_ include `https`; if you want both,
- you should specify both as `http:https`.
-
- - any external helpers are named by their protocol (e.g., use
- `hg` to allow the `git-remote-hg` helper)
-
+ If set to a colon-separated list of protocols, behave as if
+ `protocol.allow` is set to `never`, and each of the listed
+ protocols has `protocol.<name>.allow` set to `always`
+ (overriding any existing configuration). In other words, any
+ protocol not mentioned will be disallowed (i.e., this is a
+ whitelist, not a blacklist). See the description of
+ `protocol.allow` in linkgit:git-config[1] for more details.
+
+`GIT_PROTOCOL_FROM_USER`::
+ Set to 0 to prevent protocols used by fetch/push/clone which are
+ configured to the `user` state. This is useful to restrict recursive
+ submodule initialization from an untrusted repository or for programs
+ which feed potentially-untrusted URLS to git commands. See
+ linkgit:git-config[1] for more details.
Discussion[[Discussion]]
------------------------