We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e1640e commit ccec414Copy full SHA for ccec414
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"
@@ -1124,6 +1125,13 @@ static int store_updated_refs(struct display_state *display_state,
1124
1125
1126
opt.exclude_hidden_refs_section = "fetch";
1127
rm = ref_map;
1128
+
1129
+ /*
1130
+ * Before checking connectivity, be really sure we have the
1131
+ * latest pack-files loaded into memory.
1132
+ */
1133
+ reprepare_packed_git(the_repository);
1134
1135
if (check_connected(iterate_ref_map, &rm, &opt)) {
1136
rc = error(_("%s did not send all necessary objects"),
1137
display_state->url);
0 commit comments