Skip to content

Commit e56b535

Browse files
pcloudsgitster
authored andcommitted
config.txt: correct the note about uploadpack.packObjectsHook
Document for uploadpack.packObjectsHook is added in [1] and consists of two paragraphs, the second one is quite important about where this variable can stay. When the paragraph about uploadpack.allowFilter is added in [2], it's added in between the two paragraphs. This makes the "this is non-repo level config" note incorrectly apply to allowFilter instead of packObjectsHook. Move allowFilter paragraph down to fix this. [1] 20b20a2 (upload-pack: provide a hook for running pack-objects - 2016-05-18) [2] 10ac85c (upload-pack: add object filtering for partial clone - 2017-12-08) Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 10ac85c commit e56b535

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Documentation/config.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3268,15 +3268,15 @@ uploadpack.packObjectsHook::
32683268
was run. I.e., `upload-pack` will feed input intended for
32693269
`pack-objects` to the hook, and expects a completed packfile on
32703270
stdout.
3271-
3272-
uploadpack.allowFilter::
3273-
If this option is set, `upload-pack` will advertise partial
3274-
clone and partial fetch object filtering.
32753271
+
32763272
Note that this configuration variable is ignored if it is seen in the
32773273
repository-level config (this is a safety measure against fetching from
32783274
untrusted repositories).
32793275

3276+
uploadpack.allowFilter::
3277+
If this option is set, `upload-pack` will support partial
3278+
clone and partial fetch object filtering.
3279+
32803280
url.<base>.insteadOf::
32813281
Any URL that starts with this value will be rewritten to
32823282
start, instead, with <base>. In cases where some site serves a

0 commit comments

Comments
 (0)