Skip to contentSkip to conversation

repo.or.cz being not well???

DISCUSSION Junio C Hamano 3 participants 7 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

Has something changed recently at repo.or.cz, accepting pushes over ssh, in the past few days? I am getting this:

    $ git push -n -v repo.or.cz:srv/git/alt-git.git/
    403 forbidden
    fatal: Could not read from remote repository.

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

#1 lore raw
Quoted 9 lines · Junio C Hamano

Has something changed recently at repo.or.cz, accepting pushes over ssh, in the past few days? I am getting this:

    $ git push -n -v repo.or.cz:srv/git/alt-git.git/
    403 forbidden
    fatal: Could not read from remote repository.

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

Nevermind, I figured it out.

	$ git push repo.or.cz:/srv/git/alt-git.git

seems to be the new way to spell the scp style push.

Two points to note, just in case it would help other users, are

(1) The repository hierarchy is no longer under your initial directory and you have to explicitly ask for /srv/$path; and

(2) You used to be able to, but no longer are allowed, to have a trailing slash in your repository URL.

#2 lore raw

My apologies.

repo.or.cz recently had some updates to support:

1) smart HTTP fetch
2) smart HTTP push (over https)
3) user removal of projects

Along with those updates it started doing more validation on paths.

I believe all the paths listed on http://repo.or.cz/w/alt-git.git are accepted as shown.

I was not previously aware that URLs not shown on that page were accepted, thank you for bringing it to my attention.

Do you feel that it's important to accept these alternate URL versions that are not listed on the project page:

1) Optional trailing '/'
2) For the ssh scp form, optional leading '/'

Regards,
Kyle

Quoted 25 lines · Junio C Hamano
Quoted 9 lines · Junio C Hamano

Has something changed recently at repo.or.cz, accepting pushes over ssh, in the past few days? I am getting this:

   $ git push -n -v repo.or.cz:srv/git/alt-git.git/
   403 forbidden
   fatal: Could not read from remote repository.

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

Nevermind, I figured it out.

	$ git push repo.or.cz:/srv/git/alt-git.git

seems to be the new way to spell the scp style push.

Two points to note, just in case it would help other users, are

(1) The repository hierarchy is no longer under your initial directory and you have to explicitly ask for /srv/$path; and

(2) You used to be able to, but no longer are allowed, to have a trailing slash in your repository URL.

#3 lore raw
Quoted 8 lines · Kyle McKay

I was not previously aware that URLs not shown on that page were accepted, thank you for bringing it to my attention.

Do you feel that it's important to accept these alternate URL versions that are not listed on the project page:

1) Optional trailing '/'
2) For the ssh scp form, optional leading '/'

I am on the fence. As long as the accepted URL forms are advertised clearly (which you guys do indeed do), I do not think there is much reason to spend effort to "loosen" it again. People can adjust. On the other hand, loosening _might_ reduce the cost of "support calls" (like the one I just did) from long-time users. I dunno.

I just (1) was curious, as getting "error 403" when I didn't mean to talk to an HTTP server was strange, and (2) wanted to make sure I am talking with the same repo.or.cz without a funny MITM. If I sounded like complaining, that wasn't intended, and I am sorry.

Thanks for serving the community for all those years.

#4 lore raw
In reply to Kyle McKay
Quoted 5 lines · Kyle McKay

Do you feel that it's important to accept these alternate URL versions that are not listed on the project page:

1) Optional trailing '/'
2) For the ssh scp form, optional leading '/'

3) Optional trailing .git

Andreas.

Signature · 3 lines
Andreas Schwab, [email protected]
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
#5 lore raw
Quoted 8 lines · Andreas Schwab
Quoted 5 lines · Kyle McKay

Do you feel that it's important to accept these alternate URL versions that are not listed on the project page:

1) Optional trailing '/'
2) For the ssh scp form, optional leading '/'

3) Optional trailing .git

Thank you for your patience.

The 3 URL variants listed above should all be working again now.

Quoted 2 lines · Junio C Hamano

I just (1) was curious, as getting "error 403" when I didn't mean to talk to an HTTP server was strange,

The '403' prefix has also been removed from ssh protocol error messages to reduce confusion.

Regards,
Kyle

#6 lore raw
In reply to Junio C Hamano
Quoted 6 lines · Junio C Hamano

Has something changed recently at repo.or.cz, accepting pushes over ssh, in the past few days? I am getting this:

    $ git push -n -v repo.or.cz:srv/git/alt-git.git/
    403 forbidden
    fatal: Could not read from remote repository.

Seems like repo is being more picky about the exact path. Have you tried leaving off the trailing slash?

Andreas.

Signature · 3 lines
Andreas Schwab, [email protected]
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."