diff --git a/gvfs-helper.c b/gvfs-helper.c index c5a0012277..47f783526b 100644 --- a/gvfs-helper.c +++ b/gvfs-helper.c @@ -2453,25 +2453,25 @@ static void install_result(struct gh__request_params *params, install_prefetch(params, status); 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")) { - assert(params->b_is_post); - assert(params->objects_mode == GH__OBJECTS_MODE__POST); + install_packfile(params, status); + return; + } - install_packfile(params, status); - return; - } - - if (!strcmp(status->content_type.buf, - "application/x-git-loose-object")) { - /* - * We get these for "gvfs/objects" GET and POST requests. - * - * Note that this content type is singular, not plural. - */ - install_loose(params, status); - return; + if (!strcmp(status->content_type.buf, + "application/x-git-loose-object")) { + /* + * We get these for "gvfs/objects" GET and POST requests. + * + * Note that this content type is singular, not plural. + */ + install_loose(params, status); + return; + } } strbuf_addf(&status->error_message,