Cygwin Git repos refusing push

Adam Dinwoodie adam@dinwoodie.org
Sat Oct 8 13:23:02 GMT 2022


On Sat, 8 Oct 2022 at 14:12, Jon Turney wrote:
>
> On 04/10/2022 15:02, Adam Dinwoodie wrote:
> [...]
> >>
> >> I've adjusted the gitolite configuration so this should work again.
> >
> > Would it be possible to add some output to the hooks to provide a useful
> > explanation for what's going on?  I think anything a hook prints to
> > stdout or stderr will be seen by the user in the `git push` output, and
> > something a bit more informative than "DENIED" would be nice!
>
> This is not totally straightforward, as this hook is part of, and
> managed by, gitolite.
>
> > It's not a big issue either way, but having a more informative output in
> > this case might have saved me a bit of time trying to ensure the problem
> > was genuinely on the server and not just that I was doing something
> > daft.
>
> Do you have a suggestion as to what else the hook should say?

Something to the effect of "This server does not permit pushing to any
branch other than 'master' or 'playground'" would have made it clearer
what was going on, at least for me. But as I say, if it's difficult to
do, it's not a big deal!


More information about the Cygwin-apps mailing list