Git clone over git protocol fails

From: Gurjeet Singh <gurjeet(at)singh(dot)im>
To: Postgres Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Git clone over git protocol fails
Date: 2025-10-22 23:17:40
Message-ID: CABwTF4WMiMb-KT2NRcib5W0C8TQF6URMb+HK9a_=rnZnY8Q42w@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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

# Using the ssh protocol url from
# https://git.postgresql.org/gitweb/?p=postgresql.git;a=summary
$ git clone ssh://git(at)git(dot)postgresql(dot)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
http://Gurje.et

Browse pgsql-hackers by date

  From Date Subject
Next Message Matt Smith (matts3) 2025-10-22 23:27:47 Re: Meson install warnings when running postgres build from a sandbox
Previous Message Michael Paquier 2025-10-22 23:10:12 Re: Add copyright notice to 048_vacuum_horizon_floor.pl