git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Jeff King <peff@peff.net>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] git_connect(): fix corner cases in downgrading v2 to v0
Date: Fri, 17 Mar 2023 18:22:08 -0400	[thread overview]
Message-ID: <ZBToEJVQ6W6vTxK5@coredump.intra.peff.net> (raw)
In-Reply-To: <xmqqr0tnf2i2.fsf@gitster.g>

On Fri, Mar 17, 2023 at 03:15:49PM -0700, Junio C Hamano wrote:

> Jeff King <peff@peff.net> writes:
> 
> > There's code in git_connect() that checks whether we are doing a push
> > with protocol_v2, and if so, drops us to protocol_v0 (since we only know
> > how to do v0 for fetches).
> 
> I had to read this three times to make sense out of it, and then
> after reading the NEEDSWORK comment at the beginning of
> git_connect(), started to suspect that there is a bit of typo there
> that made it confusing to me.  Either "(since we only know how to do
> v2 for fetches)", or "(since we only know how to push via v0)",
> perhaps.

No matter how many times I proofread... :)

Yes, it should be "we only know how to do v2 for fetches".

> Other than that, superb reasoning and a very clear solution.  Will
> apply.  Thanks.

Thanks. Looks like you already fixed up s/v0/v2/ in what you queued.

-Peff

      reply	other threads:[~2023-03-17 22:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-17 19:08 [PATCH] git_connect(): fix corner cases in downgrading v2 to v0 Jeff King
2023-03-17 22:15 ` Junio C Hamano
2023-03-17 22:22   ` Jeff King [this message]

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

  List information: http://vger.kernel.org/majordomo-info.html

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

  git send-email \
    --in-reply-to=ZBToEJVQ6W6vTxK5@coredump.intra.peff.net \
    --to=peff@peff.net \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.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.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).