Skip to content

Commit 625e606

Browse files
Kevin Willfordmjcheetham
authored andcommitted
send-pack: do not check for sha1 file when GVFS_MISSING_OK set
1 parent 0e66d50 commit 625e606

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
@@ -4,6 +4,7 @@
44
#include "date.h"
55
#include "gettext.h"
66
#include "hex.h"
7+
#include "gvfs.h"
78
#include "object-store-ll.h"
89
#include "pkt-line.h"
910
#include "sideband.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 &&
49+
if (negative && !gvfs_config_is_set(GVFS_MISSING_OK) &&
4950
!repo_has_object_file_with_flags(r, oid,
5051
OBJECT_INFO_SKIP_FETCH_OBJECT |
5152
OBJECT_INFO_QUICK))

0 commit comments

Comments
 (0)