Thread (14 messages) flat view 14 messages, 6 authors, 2021-10-14

Re: [BUG] credential wildcard does not match hostnames containing an underscore

From: Jeff King <hidden>
Date: 2021-10-12 20:45:47

Possibly related (same subject, not in this thread)

On Tue, Oct 12, 2021 at 08:00:55PM +0200, Alex Waite wrote:
From a user perspective, a URL containing an underscore in the
hostname works for everything else (including all other git
operations), but not with pattern matching. It took me a couple hours
to figure out /why/, as GIT_TRACE does not provide debugging for how
git config rules do (or don't) match patterns.
One thing I noticed here: url_normalize() does complain about parsing
this URL, but we don't propagate its error message to stderr. Perhaps we
should do so with warning(), but I'm a bit afraid that we may be relying
on this code to silently ignore invalid urls (i.e., showing the error
would cause some other innocuous cases to start issuing noisy and
useless warnings).

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help