summaryrefslogtreecommitdiff
path: root/Documentation/config.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-01-28 21:49:57 -0800
committerJunio C Hamano <gitster@pobox.com>2013-02-07 13:56:52 -0800
commit390eb36b0a9cbaa5051040c762b986ddd4b3848f (patch)
tree68a600ae8cae528837c202aebb1d5c33f915ba88 /Documentation/config.txt
parentf2db854d24f32de7b03dde5a7d7134f5e31100b9 (diff)
downloadgit-390eb36b0a9cbaa5051040c762b986ddd4b3848f.tar.gz
upload-pack: optionally allow fetching from the tips of hidden refs
With uploadpack.allowtipsha1inwant configuration option set, future versions of "git fetch" that allow an exact object name (likely to have been obtained out of band) on the LHS of the fetch refspec can make a request with a "want" line that names an object that may not have been advertised due to transfer.hiderefs configuration. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/config.txt')
-rw-r--r--Documentation/config.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/Documentation/config.txt b/Documentation/config.txt
index 10be9ed90e..c23e59575b 100644
--- a/Documentation/config.txt
+++ b/Documentation/config.txt
@@ -2083,7 +2083,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