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://[email protected]/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

Reply via email to