Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jgit-dev] PreReceive hook ReceiveCommand rejection messages

Hi JGit Team,

PreReceive rejection.

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?


reference thread:

Back to the top