git: Apply sub-repo permissions to git.ArchiveReader
Created by: sashaostrikov
Since we don't have a valid use case for an end-user to request an entire archive of a repo, sub-repo permissions check returns an error if the context indicates this is a user request.
Closes https://github.com/sourcegraph/sourcegraph/issues/27332