|Re: [jgit-dev] PreReceive hook ReceiveCommand rejection messages|
Hi JGit Team,
receiveCommand.setResult(Result.REJECTED_OTHER_REASON, "this git server
does not like you")
I expected that the reason would be displayed client-side. This does
not appear to be the case. The JavaDoc for sendError suggests that
setResult(result, reason) is the appropriate technique for reporting a
rejection error message to the client.
Is Gitblit doing something
incorrect here? Should the Gitblit receive hook call sendError manually
if a prereceive command result is one of the REJECTED enum values?
jgit-dev mailing list
Back to the top