Skip to content

Commit

Permalink
send-pack: do not check for sha1 file when GVFS_MISSING_OK set
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Willford authored and dscho committed Aug 8, 2023
1 parent 0a3896d commit 4d5ba02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion send-pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include "gettext.h"
#include "hex.h"
#include "refs.h"
#include "gvfs.h"
#include "object-store-ll.h"
#include "pkt-line.h"
#include "sideband.h"
Expand Down Expand Up @@ -46,7 +47,7 @@ int option_parse_push_signed(const struct option *opt,

static void feed_object(const struct object_id *oid, FILE *fh, int negative)
{
if (negative &&
if (negative && !gvfs_config_is_set(GVFS_MISSING_OK) &&
!repo_has_object_file_with_flags(the_repository, oid,
OBJECT_INFO_SKIP_FETCH_OBJECT |
OBJECT_INFO_QUICK))
Expand Down

0 comments on commit 4d5ba02

Please sign in to comment.