Skip to content

receive-pack: optionally deny case clone refs

David Turner git 4 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest1 patch 16 repliesIn review
  2. v31 patch 2 repliesSuperseded
  3. v21 patch 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v11 patch4 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1receive-pack: optionally deny case clone refsDocumentation/config.txt Documentation/git-push.txt Documentation/glossary-content.txt +4 more+261 -91 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 0/1] receive-pack: optionally deny case clone refs

This issue bit us again recently.

In talking with some colleagues, I realized that the previous version of this patch, in addition to being potentially slow, was incomplete. Specifically, it didn't handle the case of refs/heads/case/one vs refs/heads/CASE/two; these are case clones even though they strcasecmp different.

This new version contains code to prevent this, as well as tests for this case.

Also it uses a hashmap to make lookups constant-time.