Git clone over git protocol fails - Mailing list pgsql-hackers

From Gurjeet Singh
Subject Git clone over git protocol fails
Date
Msg-id CABwTF4WMiMb-KT2NRcib5W0C8TQF6URMb+HK9a_=rnZnY8Q42w@mail.gmail.com
Whole thread Raw
Responses Re: Git clone over git protocol fails
List pgsql-hackers
I'm not sure if it's expected because of some recent infrastructure changes, but cloning Postgres repo with the following commands fails.

# Using command from Postgres docs at
# https://www.postgresql.org/docs/current/git.html
$ git clone git://git.postgresql.org/git/postgresql.git
Cloning into 'postgresql'...
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

# Removing the /git/ part, to match ssh protocol url on
# https://git.postgresql.org/gitweb/?p=postgresql.git;a=summary
$ git clone git://git.postgresql.org/postgresql.git
Cloning into 'postgresql'...
fatal: remote error: access denied or repository not exported: /postgresql.git

$ git clone ssh://git@git.postgresql.org/postgresql.git
Cloning into 'postgresql'...
Permission denied on repository for user gurjeet
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

# Using the https protocol works
$ git clone https://git.postgresql.org/git/postgresql.git
Cloning into 'postgresql'...
remote: Enumerating objects: 1081430, done.
...

IIRC, cloning and fetching using  git://git.postgresql.org/git/postgresql.git URL worked at least a few months ago (I have a repo from back then where I used the git:// protocol instead of https).

The docs page mentioned in the first command needs to be fixed for sure.

Best regards,
Gurjeet

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Add copyright notice to 048_vacuum_horizon_floor.pl
Next
From: "Matt Smith (matts3)"
Date:
Subject: Re: Meson install warnings when running postgres build from a sandbox