Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upload-pack: fix how ALLOW_ANY_SHA1 flag is disabled
ALLOW_ANY_SHA1 implies ALLOW_TIP_SHA1 and ALLOW_REACHABLE_SHA1. Yet ALLOW_TIP_SHA1 and ALLOW_REACHABLE_SHA1 flags can be enabled independently. If uploadpack.allowAnySHA1InWant is not enabled in config file, other flags should not be disabled together with ALLOW_ANY_SHA1. They should be kept enabled if they were separately enabled in config file with they respective options. Signed-off-by: Piotr Szlazak <[email protected]>
- Loading branch information