Gogs redirect fatal unable to update url base from redirection

Hi all,

I installed the last package of gogs and work perfeclty (cool) but I have one issue I cannot solve (no idea how).
The gogs package is installed as private (not public) so when I try to push (origin master) I have this error

Gogs$ git push -u origin master
fatal: unable to update url base from redirection:
asked for: https://domain.com/gogs/info/refs?service=git-receive-pack
redirect: https://domain.com/yunohost/sso/?r=aHR0cHnaXQvaW5mby9yZWZzP3NlcnZpY2U9Z2l0LXJlY2VpdmUtcGFjaw==

is there any way to push ? and bypass the SSO ? with a token or something else ? thanks.

Hi elekis,

Currently, I am facing the same issue.
Did you found a solution ?
If yes, could you share it ?

Many thanks in advance.


I found a workaround.
I uninstalled GOGS and then I install it again but had to make the application public.

I will manage privacy myself by setting for each repository the private flag.


no, not found. But I admit your woraround is cool. I will think about it.


I will try to find a solution for that, mybe by a specific rule in ssowat. Just wait that I have some time to work on that.

1 Like


I have worked on a solution to give a access to the git repos by http in private mode.

Actually I found a solution to give an access but, the problem is by that if the install is in private mode all repository who isn’t set as private in the repos settings, the repos could be cloned by http by everybody, so I don’t know if it’s really a good Idea about security*.

*By that I think of a user (who as a private instance) who don’t set the repos as private (in repos settings) because he think that in private mode in all case everything is private. For now it’s true but by this patch it will change.

So I need a maybe some point of view, to know if I integrate this patch or not.



I have fixed this in the testing branch. You can try it if you want.

thanks, I will try once my server is up again (instabilities issues).