On Mon, 25 May 2015 13:44:49 -0700 (PDT)
Matthias Lantsch <alasar.gogle.su...@gmail.com> wrote:

[...]
> But when I am trying to push, I get a 404 header back and a return
> code 22:
> > PROPFIND /git/repo/test.git/ HTTP/1.1

JFTR:

The server's part -- maps requests and URIs to actions:

$ git grep -E 'GET|POST|PROP' v1.9.5 -- http-backend.c 
v1.9.5:http-backend.c:                  "Expected POST with Content-Type '%s',"
v1.9.5:http-backend.c:  {"GET", "/HEAD$", get_head},
v1.9.5:http-backend.c:  {"GET", "/info/refs$", get_info_refs},
v1.9.5:http-backend.c:  {"GET", "/objects/info/alternates$", get_text_file},
v1.9.5:http-backend.c:  {"GET", "/objects/info/http-alternates$", 
get_text_file},
v1.9.5:http-backend.c:  {"GET", "/objects/info/packs$", get_info_packs},
v1.9.5:http-backend.c:  {"GET", "/objects/[0-9a-f]{2}/[0-9a-f]{38}$", 
get_loose_object},
v1.9.5:http-backend.c:  {"GET", "/objects/pack/pack-[0-9a-f]{40}\\.pack$", 
get_pack_file},
v1.9.5:http-backend.c:  {"GET", "/objects/pack/pack-[0-9a-f]{40}\\.idx$", 
get_idx_file},
v1.9.5:http-backend.c:  {"POST", "/git-upload-pack$", service_rpc},
v1.9.5:http-backend.c:  {"POST", "/git-receive-pack$", service_rpc}
v1.9.5:http-backend.c:          method = "GET";
v1.9.5:http-backend.c:                                  hdr_str("Allow", 
!strcmp(c->method
v1.9.5:http-backend.c:                                          "GET, HEAD" : 
c->method);

(As you can see, the query part of the URI is stripped before the URI path
hits this code.)

Grepping for PROPFIND:

git% git grep -F PROPFIND v1.9.5               
v1.9.5:http-push.c:#define DAV_PROPFIND "PROPFIND"
v1.9.5:http-push.c:#define DAV_PROPFIND_RESP ".multistatus.response"
v1.9.5:http-push.c:#define DAV_PROPFIND_NAME ".multistatus.response.href"
v1.9.5:http-push.c:#define DAV_PROPFIND_COLLECTION 
".multistatus.response.propstat.prop.re
v1.9.5:http-push.c:#define PROPFIND_SUPPORTEDLOCK_REQUEST "<?xml 
version=\"1.0\" encoding=
v1.9.5:http-push.c:#define PROPFIND_ALL_REQUEST "<?xml version=\"1.0\" 
encoding=\"utf-8\" 
v1.9.5:http-push.c:             if (!strcmp(ctx->name, DAV_PROPFIND_RESP) && 
ls->dentry_na
v1.9.5:http-push.c:             } else if (!strcmp(ctx->name, 
DAV_PROPFIND_NAME) && ctx->c
v1.9.5:http-push.c:             } else if (!strcmp(ctx->name, 
DAV_PROPFIND_COLLECTION)) {
v1.9.5:http-push.c:     } else if (!strcmp(ctx->name, DAV_PROPFIND_RESP)) {
v1.9.5:http-push.c:     strbuf_addf(&out_buffer.buf, PROPFIND_ALL_REQUEST);
v1.9.5:http-push.c:     curl_setup_http(slot->curl, url, DAV_PROPFIND,
v1.9.5:http-push.c:             fprintf(stderr, "Unable to start PROPFIND 
request\n");
v1.9.5:http-push.c:     strbuf_addf(&out_buffer.buf, 
PROPFIND_SUPPORTEDLOCK_REQUEST, escap
v1.9.5:http-push.c:     curl_setup_http(slot->curl, repo->url, DAV_PROPFIND,
v1.9.5:http-push.c:             error("Unable to start PROPFIND request on %s", 
repo->url)

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to