"components/streams/git@gitlab.utu.fi:nicolaspope/ftl.git" did not exist on "f699dd732967e9157441a8661b5f3e6d339bd101"
Use "ERR message" for early ReceivePack problems
If the application wants to, it can use sendError(String) to send one
or more error messages to clients before the advertisements are sent.
These will cause a C Git client to break out of the advertisement
parsing loop, display "remote error: message\n", and terminate.
Servers can optionally use this to send a detailed error to a client
explaining why it cannot use the ReceivePack service on a repository.
Over smart HTTP these errors are sent in a 200 OK response, and
are in the payload, allowing the Git client to give the end-user
the custom message rather than the generic error "403 Forbidden".
Change-Id: I03f4345183765d21002118617174c77f71427b5a
Signed-off-by:
Shawn O. Pearce <spearce@spearce.org>
Showing
- org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/AdvertiseErrorTest.java 151 additions, 0 deletions...st/tst/org/eclipse/jgit/http/test/AdvertiseErrorTest.java
- org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java 31 additions, 8 deletions...ipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java
Loading
Please register or sign in to comment