public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
From: Jon Turney <jon.turney@dronecode.org.uk>
Cc: cygwin-apps@cygwin.com
Subject: Re: [PATCH cygport] git.cygclass: Suppress the depth option
Date: Sun, 11 Feb 2024 17:09:02 +0000	[thread overview]
Message-ID: <01b99212-d593-4da9-962c-be3bb5465d23@dronecode.org.uk> (raw)
In-Reply-To: <d6be65d1-979c-4b1e-ae7d-fb19d4c4597e@Shaw.ca>

On 03/12/2023 21:53, Brian Inglis via Cygwin-apps wrote:
> On 2023-12-03 13:34, Jon Turney via Cygwin-apps wrote:
>> On 30/11/2023 12:17, Daisuke Fujimura via Cygwin-apps wrote:
>>> Implementations that conditionally branch on variables are simple.
>>>
>>> The proposed retry implementation complicates git.cygclass, but I
>>> think it reduces the maintainer's effort.
>>>
>>> I have created a patch for a retry implementation.
>>> Could you review it?
>>

Thanks very much to Fujimura-san for all his work on this.

>> Attached is the patch after my edits.

I've applied a reheated version of this patch. Hopefully that works well 
enough, but obviously can be further refined if needed.

> Looks like straight curl HEAD -I tells you about smart transport if you 
> want a quick check rather than a dry run:
> 
> $ time curl -ILSs 
> https://repo.or.cz/r/git.git/info/refs?service=git-upload-pack | grep 
> -qi '^content-type:\sapplication/x-git-upload-pack'; echo $?
> 
> real    0m0.630s
> user    0m0.077s
> sys     0m0.123s
> 0
> $ time curl -ILSs 
> https://github.com/BrianInglis/apt-cyg.git/info/refs?service=git-upload-pack  | grep -qi '^content-type:\sapplication/x-git-upload-pack'; echo $?
> 
> real    0m0.440s
> user    0m0.061s
> sys     0m0.184s
> 1

Thanks for this.

Uh, but it seems like 'git clone --depth 1' works with both of these 
URLs, so... um... I'm not sure what's going on.


  parent reply	other threads:[~2024-02-11 17:09 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-19  2:11 Daisuke Fujimura
2023-11-20 14:23 ` Jon Turney
2023-11-20 16:42   ` ASSI
2023-11-30 12:17   ` Daisuke Fujimura
2023-12-03 20:34     ` Jon Turney
2023-12-03 21:53       ` Brian Inglis
2023-12-16 15:38         ` Daisuke Fujimura
2024-01-13 14:49           ` Jon Turney
2024-02-11 17:09         ` Jon Turney [this message]
2024-02-16 11:59           ` Daisuke Fujimura
2024-02-18 15:10             ` Jon Turney

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=01b99212-d593-4da9-962c-be3bb5465d23@dronecode.org.uk \
    --to=jon.turney@dronecode.org.uk \
    --cc=cygwin-apps@cygwin.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).