diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-09-28 14:33:27 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-09-28 14:33:27 -0700 |
commit | df37727a65c87cf9bba35befca1255031649553f (patch) | |
tree | 1b94b1eff66ebbc258722f59b60ca64eac0c6de3 /Documentation | |
parent | Git 2.3.9 (diff) | |
parent | submodule: allow only certain protocols for submodule fetches (diff) | |
download | tgif-df37727a65c87cf9bba35befca1255031649553f.tar.xz |
Merge branch 'jk/transfer-limit-protocol' into maint-2.3
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/git.txt | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Documentation/git.txt b/Documentation/git.txt index a62ed6f11a..b6a12b32ee 100644 --- a/Documentation/git.txt +++ b/Documentation/git.txt @@ -1045,6 +1045,38 @@ GIT_ICASE_PATHSPECS:: an operation has touched every ref (e.g., because you are 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, + `git+ssh://`, etc). + + - `rsync`: git over rsync + + - `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) ++ +Note that this controls only git's internal protocol selection. +If libcurl is used (e.g., by the `http` transport), it may +redirect to other protocols. There is not currently any way to +restrict this. + Discussion[[Discussion]] ------------------------ |