Skip to content

Commit c9ceb5a

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

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
@@ -15,6 +15,7 @@
1515
#include "sha1-array.h"
1616
#include "gpg-interface.h"
1717
#include "cache.h"
18+
#include "gvfs.h"
1819

1920
int option_parse_push_signed(const struct option *opt,
2021
const char *arg, int unset)
@@ -50,7 +51,7 @@ static int send_pack_config(const char *var, const char *value, void *unused)
5051

5152
static void feed_object(const struct object_id *oid, FILE *fh, int negative)
5253
{
53-
if (negative && !has_sha1_file(oid->hash))
54+
if (negative && !gvfs_config_is_set(GVFS_MISSING_OK) && !has_sha1_file(oid->hash))
5455
return;
5556

5657
if (negative)

0 commit comments

Comments
 (0)