Skip to content

Commit 892ddf7

Browse files
Kevin Willfordderrickstolee
authored andcommitted
send-pack: do not check for sha1 file when GVFS_MISSING_OK set
1 parent 3e3a826 commit 892ddf7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

send-pack.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include "config.h"
33
#include "commit.h"
44
#include "refs.h"
5+
#include "gvfs.h"
56
#include "object-store.h"
67
#include "pkt-line.h"
78
#include "sideband.h"
@@ -51,7 +52,7 @@ static int send_pack_config(const char *var, const char *value, void *unused)
5152

5253
static void feed_object(const struct object_id *oid, FILE *fh, int negative)
5354
{
54-
if (negative &&
55+
if (negative && !gvfs_config_is_set(GVFS_MISSING_OK) &&
5556
!has_object_file_with_flags(oid,
5657
OBJECT_INFO_SKIP_FETCH_OBJECT |
5758
OBJECT_INFO_QUICK))

0 commit comments

Comments
 (0)