Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Jan 2024 20:32:19 -0500
From:      Paul M Foster <paulf@quillandmouse.com>
To:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: Unable to git clone ports collection
Message-ID:  <20240201013219.dthr2iyomowho76n@yosemite.mars.lan>
In-Reply-To: <bf3dc439-7fd7-4075-a7f6-11e003cd993c@app.fastmail.com>
References:  <20240131061508.5nttnygaqrwvm6xi@yosemite.mars.lan> <bf3dc439-7fd7-4075-a7f6-11e003cd993c@app.fastmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jan 31, 2024 at 07:48:36AM +0000, Dave Cottlehuber wrote:

> On Wed, 31 Jan 2024, at 06:15, Paul M Foster wrote:
> > Folks:
> >
> > I'm following the docs at docs.freebsd.org. There's a line which dictates:
> >
> > git clone https://git.freebsd.org/ports.git /usr/ports
> >
> > This results in a redirection error. The error:
> >
> > Cloning into '/usr/ports'
> > fatal: unable to update url base from redirection:
> >   asked for:
> >   https://git.freebsd.org/ports.git/info/refs?service=git-upload-pack
> >    redirect: https://cgit.freebsd.org/ports
> >
> > Nothing is downloaded at /usr/ports and in fact the directory doesn't
> > exist.
> 
> On a fresh server, this seems to work just fine (here in EU at least)
> and that's the same URL I use for fetching daily from ports tree.
> 
> > git clone -v https://git.freebsd.org/ports.git /tmp/ports
> Cloning into '/tmp/ports'...
> POST git-upload-pack (175 bytes)
> POST git-upload-pack (gzip 7002 to 3523 bytes)
> remote: Enumerating objects: 6084351, done.
> remote: Counting objects: 100% (936/936), done.
> remote: Compressing objects: 100% (120/120), done.
> ^C⏎                                                        
> 
> So I'm guessing either temporary glitch, or your local mirror
> isn't happy?
> 
> re-try with:
> 
> env GIT_CURL_VERBOSE=1 GIT_TRACE=1 git clone -v \
>   https://git.freebsd.org/ports.git /usr/ports
> 
> and report back anything interesting.

Oh well, that's weird. With your exact steps, it appears to be working
(download of this code takes a looooong time, so it's not finished yet).
Lots of gibberish, but then it started downloading. How could simply adding
a verbose parameter make that kind of change?

Paul

-- 
Paul M. Foster
Personal Blog: http://noferblatz.com
Company Site: http://quillandmouse.com
Software Projects: https://gitlab.com/paulmfoster



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20240201013219.dthr2iyomowho76n>