Skip to content

Commit 7e22060

Browse files
committed
docs/gitcredentials: further describe path prefix
Record that path prefix matching requires the pattern to also include protocol and host. Signed-off-by: M Hickford <[email protected]>
1 parent 15f44a2 commit 7e22060

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Documentation/gitcredentials.adoc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,11 @@ the domain name and other pattern matching techniques as with the `http.<URL>.*`
166166
options.
167167
168168
If the "pattern" URL does include a path component, then this must match
169-
as a prefix path: the context `https://example.com/bar` will match a config
169+
as a path prefix: the context `https://example.com/bar` will match a config
170170
entry for `https://example.com/bar/baz.git` but will not match a config entry for
171171
`https://example.com/other/repo.git` or `https://example.com/barry/repo.git`
172-
(even though it is a string prefix).
172+
(even though it is a string prefix). To match as a prefix, the pattern
173+
must include protocol and host.
173174
174175
175176
CONFIGURATION OPTIONS

0 commit comments

Comments
 (0)