send-pack: do not check for sha1 file when GVFS_MISSING_OK set

This commit is contained in:
Kevin Willford 2018-11-16 11:28:59 -07:00 коммит произвёл Victoria Dye
Родитель 6e8736a029
Коммит b4544dcbb0
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -5,6 +5,7 @@
#include "gettext.h" #include "gettext.h"
#include "hex.h" #include "hex.h"
#include "refs.h" #include "refs.h"
#include "gvfs.h"
#include "object-store.h" #include "object-store.h"
#include "pkt-line.h" #include "pkt-line.h"
#include "sideband.h" #include "sideband.h"
@ -57,7 +58,7 @@ static int send_pack_config(const char *var, const char *value, void *unused)
static void feed_object(const struct object_id *oid, FILE *fh, int negative) static void feed_object(const struct object_id *oid, FILE *fh, int negative)
{ {
if (negative && if (negative && !gvfs_config_is_set(GVFS_MISSING_OK) &&
!repo_has_object_file_with_flags(the_repository, oid, !repo_has_object_file_with_flags(the_repository, oid,
OBJECT_INFO_SKIP_FETCH_OBJECT | OBJECT_INFO_SKIP_FETCH_OBJECT |
OBJECT_INFO_QUICK)) OBJECT_INFO_QUICK))