]> git.ipfire.org Git - thirdparty/git.git/commit
promisor-remote: compare remote names case sensitively
authorChristian Couder <christian.couder@gmail.com>
Tue, 18 Mar 2025 11:00:08 +0000 (12:00 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 18 Mar 2025 19:22:34 +0000 (12:22 -0700)
commit2c0dcb9754959c9b917634313fb448fce5052642
tree3cb0c27fa4c95fc212f2422d212de5c8e64e130c
parentcaed258323bfd8cab1ae086cbacc6ece5b5ef364
promisor-remote: compare remote names case sensitively

Because the "[remote "nick"] fetch = ..." configuration variables
have the nickname in the second part, the nicknames are case
sensitive, unlike the first and the third component (i.e.
"remote.origin.fetch" and "Remote.origin.FETCH" are the same thing,
but "remote.Origin.fetch" and "remote.origin.fetch" are different).

Let's follow the way Git works in general and compare the remote
names case sensitively when processing advertised remotes.

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config/promisor.adoc
promisor-remote.c