diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-03-21 14:02:27 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-03-21 14:02:27 -0700 |
commit | e4e1c5499056de58f7df207cf41274a321857c77 (patch) | |
tree | 0db72148291ce77c21c959a5ed7fe333f1271409 /Documentation/config.txt | |
parent | c241e285e53bc84def85682eeaa265c1cd99cceb (diff) | |
parent | 6e7b66eebd18c11f58a9790b8f071618a1bb5b2c (diff) | |
download | git-e4e1c5499056de58f7df207cf41274a321857c77.tar.gz |
Merge branch 'jc/fetch-raw-sha1'
Allows requests to fetch objects at any tip of refs (including
hidden ones). It seems that there may be use cases even outside
Gerrit (e.g. $gmane/215701).
* jc/fetch-raw-sha1:
fetch: fetch objects by their exact SHA-1 object names
upload-pack: optionally allow fetching from the tips of hidden refs
fetch: use struct ref to represent refs to be fetched
parse_fetch_refspec(): clarify the codeflow a bit
Diffstat (limited to 'Documentation/config.txt')
-rw-r--r-- | Documentation/config.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Documentation/config.txt b/Documentation/config.txt index 975d3d18d5..c1f435f6df 100644 --- a/Documentation/config.txt +++ b/Documentation/config.txt @@ -2123,7 +2123,13 @@ uploadpack.hiderefs:: are under the hierarchies listed on the value of this variable is excluded, and is hidden from `git ls-remote`, `git fetch`, etc. An attempt to fetch a hidden ref by `git - fetch` will fail. + fetch` will fail. See also `uploadpack.allowtipsha1inwant`. + +uploadpack.allowtipsha1inwant:: + When `uploadpack.hiderefs` is in effect, allow `upload-pack` + to accept a fetch request that asks for an object at the tip + of a hidden ref (by default, such a request is rejected). + see also `uploadpack.hiderefs`. url.<base>.insteadOf:: Any URL that starts with this value will be rewritten to |