Anonymous Public Clone Not Working

I have a gitea instance set up and have ben using it for a while for private repositories without issue. I’m now trying to create a public repository that I want people to be able to clone from without a username / password. I have set the repo to allow anonymous reads in the Settings / Public Access panel. So now I’m trying:

git clone https://git.myserver.com/user/my-repo.git

But I’m being asked to enter a username and password. I’ve seen previous posts saying that setting REQUIRE_SIGNIN_VIEW = true in app.ini solved this issue but this is already set in my ini file and I’m still having the problem.

I can view the webpage for the repository without signing in, so it seems the setting is partly working. Any ideas how to solve this and allow anonymous clones?

When you view the repository via the webpage, does it say “Private” and “Public Access” in after the repo name? I had to go into the repo’s settings → repository → danger zone → visibility → make public.

Unfortunately, it also made the issues, pull requests, actions etc visible too. I think this is probably unintended behavior; I agree that if you can see the code in the web view, you should be able to clone it.

1 Like

Ah it did say “Private” and “Public Access”, that must be it, thanks!

1 Like