Skip to content

Commit 25e8e94

Browse files
Kevin Willforddscho
authored andcommitted
send-pack: do not check for sha1 file when GVFS_MISSING_OK set
1 parent de7e670 commit 25e8e94

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
@@ -3,6 +3,7 @@
33
#include "commit.h"
44
#include "date.h"
55
#include "gettext.h"
6+
#include "gvfs.h"
67
#include "hex.h"
78
#include "odb.h"
89
#include "pkt-line.h"
@@ -45,7 +46,7 @@ int option_parse_push_signed(const struct option *opt,
4546
static void feed_object(struct repository *r,
4647
const struct object_id *oid, FILE *fh, int negative)
4748
{
48-
if (negative && !odb_has_object(r->objects, oid, 0))
49+
if (negative && !gvfs_config_is_set(r, GVFS_MISSING_OK) && !odb_has_object(r->objects, oid, 0))
4950
return;
5051

5152
if (negative)

0 commit comments

Comments
 (0)