Skip to content

Commit 60e7946

Browse files
Kevin Willforddscho
Kevin Willford
authored andcommitted
send-pack: do not check for sha1 file when GVFS_MISSING_OK set
1 parent 5357567 commit 60e7946

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: send-pack.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include "date.h"
77
#include "gettext.h"
88
#include "hex.h"
9+
#include "gvfs.h"
910
#include "object-store-ll.h"
1011
#include "pkt-line.h"
1112
#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)