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 4aa479d commit ef7be83Copy full SHA for ef7be83
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"
@@ -1162,6 +1163,13 @@ static int store_updated_refs(struct display_state *display_state,
1162
1163
1164
opt.exclude_hidden_refs_section = "fetch";
1165
rm = ref_map;
1166
+
1167
+ /*
1168
+ * Before checking connectivity, be really sure we have the
1169
+ * latest pack-files loaded into memory.
1170
+ */
1171
+ reprepare_packed_git(the_repository);
1172
1173
if (check_connected(iterate_ref_map, &rm, &opt)) {
1174
rc = error(_("%s did not send all necessary objects"),
1175
display_state->url);
0 commit comments