Skip to content

Commit cc0227f

Browse files
Kevin Willfordvdye
authored andcommitted
send-pack: do not check for sha1 file when GVFS_MISSING_OK set
1 parent 7501847 commit cc0227f

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
@@ -5,6 +5,7 @@
55
#include "gettext.h"
66
#include "hex.h"
77
#include "refs.h"
8+
#include "gvfs.h"
89
#include "object-store.h"
910
#include "pkt-line.h"
1011
#include "sideband.h"
@@ -57,7 +58,7 @@ static int send_pack_config(const char *var, const char *value, void *unused)
5758

5859
static void feed_object(const struct object_id *oid, FILE *fh, int negative)
5960
{
60-
if (negative &&
61+
if (negative && !gvfs_config_is_set(GVFS_MISSING_OK) &&
6162
!repo_has_object_file_with_flags(the_repository, oid,
6263
OBJECT_INFO_SKIP_FETCH_OBJECT |
6364
OBJECT_INFO_QUICK))

0 commit comments

Comments
 (0)