I have a self-hosted BitBucket instance that I do not want accessed via https - all scm access will be via ssh. I've turned off HTTP(S) SCM, which does prevent un-authenticated scm access via https, which works:
fatal: remote error: SCM access over HTTP(S) has been disabled
However, if I attempt to git clone a non-existent repository, I instead get the message
fatal: remote error: Repository not found
The requested repository does not exist, or you do not have permission to
access it.
If I explicitly disable https scm access, why is BitBucket even reporting that the repository doesn't exist? I would have expected the first message (https disabled) instead.
An unauthenticated, random remote user shouldn't be able to confirm the presence/absence of my repositories this way.
Or am I missing something?
Thanks!