Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Jan 2024 07:48:36 +0000
From:      "Dave Cottlehuber" <dch@skunkwerks.at>
To:        "Paul M Foster" <paulf@quillandmouse.com>
Cc:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: Unable to git clone ports collection
Message-ID:  <bf3dc439-7fd7-4075-a7f6-11e003cd993c@app.fastmail.com>
In-Reply-To: <20240131061508.5nttnygaqrwvm6xi@yosemite.mars.lan>
References:  <20240131061508.5nttnygaqrwvm6xi@yosemite.mars.lan>

next in thread | previous in thread | raw e-mail | index | archive | help
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 dicta=
tes:
>
> 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=3Dgit-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=E2=8F=8E                                                       =20

So I'm guessing either temporary glitch, or your local mirror
isn't happy?

re-try with:

env GIT_CURL_VERBOSE=3D1 GIT_TRACE=3D1 git clone -v \
  https://git.freebsd.org/ports.git /usr/ports

and report back anything interesting.

NB I think the internal git url is https://cgit.freebsd.org/ports.git (a=
t least I
need that to commit & push my changes back via ssh), but the one you use=
d seems
entirely legit to me.

A+
Dave



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bf3dc439-7fd7-4075-a7f6-11e003cd993c>