Skip to content

Commit f5ba2d1

Browse files
MarkLodatogitster
authored andcommitted
http-backend: more explict LocationMatch
In the git-http-backend examples, only match git-receive-pack within /git/. Signed-off-by: Mark Lodato <[email protected]> Signed-off-by: Shawn O. Pearce <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8127f77 commit f5ba2d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Documentation/git-http-backend.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ To enable anonymous read access but authenticated write access,
6969
require authorization with a LocationMatch directive:
7070
+
7171
----------------------------------------------------------------
72-
<LocationMatch ".*/git-receive-pack$">
72+
<LocationMatch "^/git/.*/git-receive-pack$">
7373
AuthType Basic
7474
AuthName "Git Access"
7575
Require group committers

0 commit comments

Comments
 (0)