зеркало из https://github.com/microsoft/git.git
gvfs-helper: move content-type warning for prefetch packs
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
This commit is contained in:
Родитель
1dd38afaf1
Коммит
055644fa13
|
@ -2453,25 +2453,25 @@ static void install_result(struct gh__request_params *params,
|
||||||
install_prefetch(params, status);
|
install_prefetch(params, status);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
|
if (!strcmp(status->content_type.buf, "application/x-git-packfile")) {
|
||||||
|
assert(params->b_is_post);
|
||||||
|
assert(params->objects_mode == GH__OBJECTS_MODE__POST);
|
||||||
|
|
||||||
if (!strcmp(status->content_type.buf, "application/x-git-packfile")) {
|
install_packfile(params, status);
|
||||||
assert(params->b_is_post);
|
return;
|
||||||
assert(params->objects_mode == GH__OBJECTS_MODE__POST);
|
}
|
||||||
|
|
||||||
install_packfile(params, status);
|
if (!strcmp(status->content_type.buf,
|
||||||
return;
|
"application/x-git-loose-object")) {
|
||||||
}
|
/*
|
||||||
|
* We get these for "gvfs/objects" GET and POST requests.
|
||||||
if (!strcmp(status->content_type.buf,
|
*
|
||||||
"application/x-git-loose-object")) {
|
* Note that this content type is singular, not plural.
|
||||||
/*
|
*/
|
||||||
* We get these for "gvfs/objects" GET and POST requests.
|
install_loose(params, status);
|
||||||
*
|
return;
|
||||||
* Note that this content type is singular, not plural.
|
}
|
||||||
*/
|
|
||||||
install_loose(params, status);
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
strbuf_addf(&status->error_message,
|
strbuf_addf(&status->error_message,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче