Skip to content

Commit 3f52c7d

Browse files
Kevin Willforddscho
authored andcommitted
send-pack: do not check for sha1 file when GVFS_MISSING_OK set
1 parent 205770b commit 3f52c7d

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-ll.h"
910
#include "pkt-line.h"
1011
#include "sideband.h"
@@ -46,7 +47,7 @@ int option_parse_push_signed(const struct option *opt,
4647

4748
static void feed_object(const struct object_id *oid, FILE *fh, int negative)
4849
{
49-
if (negative &&
50+
if (negative && !gvfs_config_is_set(GVFS_MISSING_OK) &&
5051
!repo_has_object_file_with_flags(the_repository, oid,
5152
OBJECT_INFO_SKIP_FETCH_OBJECT |
5253
OBJECT_INFO_QUICK))

0 commit comments

Comments
 (0)