Skip to content
Snippets Groups Projects
Commit 0f95d2d0 authored by Nico Sallembien's avatar Nico Sallembien Committed by Shawn O. Pearce
Browse files

Add a paranoid 'must be provided' option to ReceivePack


By default a receive pack assumes that its user will only provide
references to objects that the user already has access to on their
local client.  In certain cases, an additional check to verify the
references point only to reachable objects is necessary.

This additional checking is useful when the code doesn't trust
the client not to provide a forged SHA-1 reference to an object,
in an attempt to access parts of the DAG that they weren't allowed
to see by the configured RefFilter.

Change-Id: I3e4b8505cb2992e3e4be253abb14a1501e47b970
Signed-off-by: default avatarShawn O. Pearce <spearce@spearce.org>
parent 6fabb6d2
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment