Git development
 help / color / mirror / Atom feed
From: Patrick Steinhardt <ps@pks.im>
To: Aniket Gupta <aniketgupta3001@gmail.com>
Cc: Derrick Stolee <stolee@gmail.com>,
	git@vger.kernel.org, Junio C Hamano <gitster@pobox.com>
Subject: Re: [PATCH v3 0/3] bundle-uri: do not die on unresolvable relative URIs
Date: Mon, 9 Nov 2026 10:26:59 +0100	[thread overview]
Message-ID: <avGR422rPHr1Orv5@pks.im> (raw)
In-Reply-To: <20261106172533.612673-1-aniketgupta3001@gmail.com>

On Fri, Nov 06, 2026 at 05:25:33PM +0000, Aniket Gupta wrote:
> Hi Stolee,
> 
> Thanks for the review.
> 
> > I'm less convinced on this factor.

Huh, where does this quote come from? It's certainly not part of the
mail you reply to. Also, you stripped all necessary context for somebody
to know what this was even talking about.

> Fair point. I tried it with a password in the remote URL but the "failed
> to download bundle from URI" warning prints it as is. I think this patch
> will only cover this one message. The reason I did it is that git
> already hides the password when it shows a remote URL. For eg. in the
> "From" line of fetch. It is a separate patch so it is easy to drop if
> you and Patrick think it is not worth it.

I don't have a strong opinion on whether or not we should strip
credentials. It feels like the right thing to do, but I trust Stolee's
input here.

But the other part of patch 2 should definitely be retained in my
opinion, because printing an error with the URL after we have trimmed
"../" components off of it is just plain not useful. There is no way for
the user to tell how the URL is broken because we may have already
stripped the relevant components here.

Patrick

  reply	other threads:[~2026-11-09  9:27 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-05 15:28 [PATCH v3 0/3] bundle-uri: do not die on unresolvable relative URIs Aniket Gupta
2026-11-05 15:28 ` [PATCH v3 1/3] remote: add relative_url_gently() Aniket Gupta
2026-11-06 14:36   ` Derrick Stolee
2026-11-05 15:28 ` [PATCH v3 2/3] remote: do not show credentials when relative_url() fails Aniket Gupta
2026-11-06 14:43   ` Derrick Stolee
2026-11-06 19:15     ` Junio C Hamano
2026-11-09 10:39     ` Aniket Gupta
2026-11-05 15:28 ` [PATCH v3 3/3] bundle-uri: do not die on unresolvable relative URIs Aniket Gupta
2026-11-06 14:51   ` Derrick Stolee
2026-11-06 14:57 ` [PATCH v3 0/3] " Derrick Stolee
2026-11-06 17:25   ` Aniket Gupta
2026-11-09  9:26     ` Patrick Steinhardt [this message]
2026-11-09 10:56       ` Aniket Gupta

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=avGR422rPHr1Orv5@pks.im \
    --to=ps@pks.im \
    --cc=aniketgupta3001@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=stolee@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox