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 aefd3fc commit 514990fCopy full SHA for 514990f
builtin/fetch.c
@@ -20,6 +20,7 @@
20
#include "transport.h"
21
#include "gvfs.h"
22
#include "gvfs-helper-client.h"
23
+#include "packfile.h"
24
#include "run-command.h"
25
#include "parse-options.h"
26
#include "sigchain.h"
@@ -1159,6 +1160,13 @@ static int store_updated_refs(struct display_state *display_state,
1159
1160
1161
opt.exclude_hidden_refs_section = "fetch";
1162
rm = ref_map;
1163
+
1164
+ /*
1165
+ * Before checking connectivity, be really sure we have the
1166
+ * latest pack-files loaded into memory.
1167
+ */
1168
+ reprepare_packed_git(the_repository);
1169
1170
if (check_connected(iterate_ref_map, &rm, &opt)) {
1171
rc = error(_("%s did not send all necessary objects"),
1172
display_state->url);
0 commit comments