server side: smart push over HTTP
Clients can request smart push support by examining the info/refs URL
with the service parameter set to the magic git-receive-pack string:
GET /$GIT_DIR/info/refs?service=git-receive-pack HTTP/1.1
The response is formatted with the receive pack capabilities, using
the standard packet line formatter. A special header block is put
in front of the standard receive-pack advertisement to let clients
know the service was recognized and is supported.
If the requested service is disabled an authorization status code is
returned, allowing the user agent to retry once they have obtained
credentials from a human, in case authentication is required by
the configured ReceivePackFactory implementation.
Change-Id: Ie4f6e0c7b68a68ec4b7cdd5072f91dd406210d4f
Signed-off-by:
Shawn O. Pearce <spearce@spearce.org>
Showing
- org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/GitServlet.java 34 additions, 5 deletions...p.server/src/org/eclipse/jgit/http/server/GitServlet.java
- org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/ReceivePackServlet.java 142 additions, 0 deletions.../src/org/eclipse/jgit/http/server/ReceivePackServlet.java
- org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/SmartServiceInfoRefs.java 114 additions, 0 deletions...rc/org/eclipse/jgit/http/server/SmartServiceInfoRefs.java
- org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/resolver/DefaultReceivePackFactory.java 113 additions, 0 deletions.../jgit/http/server/resolver/DefaultReceivePackFactory.java
- org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/resolver/ReceivePackFactory.java 79 additions, 0 deletions...eclipse/jgit/http/server/resolver/ReceivePackFactory.java
Loading
Please register or sign in to comment