We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f394d2c commit cdb92b9Copy full SHA for cdb92b9
1 file changed
builtin/fetch.c
@@ -23,6 +23,7 @@
23
#include "transport.h"
24
#include "gvfs.h"
25
#include "gvfs-helper-client.h"
26
+#include "packfile.h"
27
#include "run-command.h"
28
#include "parse-options.h"
29
#include "sigchain.h"
@@ -1122,6 +1123,13 @@ static int store_updated_refs(struct display_state *display_state,
1122
1123
1124
opt.exclude_hidden_refs_section = "fetch";
1125
rm = ref_map;
1126
+
1127
+ /*
1128
+ * Before checking connectivity, be really sure we have the
1129
+ * latest pack-files loaded into memory.
1130
+ */
1131
+ odb_reprepare(the_repository->objects);
1132
1133
if (check_connected(iterate_ref_map, &rm, &opt)) {
1134
rc = error(_("%s did not send all necessary objects"),
1135
display_state->url);
0 commit comments