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.