зеркало из 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:
Родитель
6613cf5506
Коммит
202c7047a5
|
@ -2442,8 +2442,7 @@ 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")) {
|
if (!strcmp(status->content_type.buf, "application/x-git-packfile")) {
|
||||||
assert(params->b_is_post);
|
assert(params->b_is_post);
|
||||||
assert(params->objects_mode == GH__OBJECTS_MODE__POST);
|
assert(params->objects_mode == GH__OBJECTS_MODE__POST);
|
||||||
|
@ -2462,6 +2461,7 @@ static void install_result(struct gh__request_params *params,
|
||||||
install_loose(params, status);
|
install_loose(params, status);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
strbuf_addf(&status->error_message,
|
strbuf_addf(&status->error_message,
|
||||||
"install_result: received unknown content-type '%s'",
|
"install_result: received unknown content-type '%s'",
|
||||||
|
|
Загрузка…
Ссылка в новой задаче