Date: Sun, 23 Apr 2023 10:20:24 -0500 From: Kyle Evans <kevans@freebsd.org> To: Alexey Dokuchaev <danfe@freebsd.org> Cc: "Piotr P. Stefaniak" <pstef@freebsd.org>, Colin Percival <cperciva@freebsd.org>, src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org, Cluster Administrators <clusteradm@freebsd.org> Subject: Re: git: df53ae0fdd98 - main - Remove portsnap(8) Message-ID: <CACNAnaFRCsPjZPxGN5M7%2BcU99NBOWk-sKQ6PtUNqtb4ehxsfEg@mail.gmail.com> In-Reply-To: <ZEVILm8lQqpR5TmP@FreeBSD.org> References: <202304230112.33N1ChPx076100@gitrepo.freebsd.org> <ZETMQtuwit%2Bc/0MW@freefall.freebsd.org> <ZEVILm8lQqpR5TmP@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Apr 23, 2023 at 10:01=E2=80=AFAM Alexey Dokuchaev <danfe@freebsd.or= g> wrote: > > On Sun, Apr 23, 2023 at 06:12:18AM +0000, Piotr P. Stefaniak wrote: > > On 2023-04-23 01:12:43, Colin Percival wrote: > > > Remove portsnap(8) > > > > > > Rather than having a tool in the FreeBSD base system for obtaining > > > the FreeBSD ports tree, users are encouraged to `pkg install git` > > > and then `git clone https://git.FreeBSD.org/ports.git /usr/ports`. > > > > With my 64 KB/s downlink a shallow copy of just the main branch takes > > almost 4 hours. What's worse, git has no way of resuming an interrupted > > download. > > My internet connection is roughly the same, and full "git clone" always > fails. However, repeated "git fetch --depth=3Dn ; n++" allowed me to get > the ports tree in a few days, eventually. I have to use this trick for > any large repo, it migth seem annoying, but it does work. > I've mentioned it a couple times on lists, but this seems like a good time to bring it up again: I maintain repo bundles of all of our repositories, at least, on freefall: https://people.freebsd.org/~kevans/bundles/ -- fetch this with whatever hip thing you have that does resumable downloads and clone a repository from it, then adjust the remote to point to the upstream repo and incremental fetch to the current version. One could imagine that clusteradm@ could take this over and make it fetchable via, say, anongit@git.f.o so one can rsync it. I call the script that I use freebsd-bundler, but it largely goes away if they just create the bundles out of the --bare source of truth repos. Thanks, Kyle Evans
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACNAnaFRCsPjZPxGN5M7%2BcU99NBOWk-sKQ6PtUNqtb4ehxsfEg>