зеркало из https://github.com/microsoft/git.git
send-pack: do not check for sha1 file when GVFS_MISSING_OK set
This commit is contained in:
Родитель
6e8736a029
Коммит
b4544dcbb0
|
@ -5,6 +5,7 @@
|
|||
#include "gettext.h"
|
||||
#include "hex.h"
|
||||
#include "refs.h"
|
||||
#include "gvfs.h"
|
||||
#include "object-store.h"
|
||||
#include "pkt-line.h"
|
||||
#include "sideband.h"
|
||||
|
@ -57,7 +58,7 @@ static int send_pack_config(const char *var, const char *value, void *unused)
|
|||
|
||||
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))
|
||||
|
|
Загрузка…
Ссылка в новой задаче