Skip to content

Commit c32ca69

Browse files
committed
Merge branch 'jt/delay-fetch-if-missing'
Work-around a lazy fetch glitch. * jt/delay-fetch-if-missing: fetch: delay fetch_if_missing=0 until after config
2 parents ab6b50e + c7aadcc commit c32ca69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

builtin/fetch.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1755,8 +1755,6 @@ int cmd_fetch(int argc, const char **argv, const char *prefix)
17551755

17561756
packet_trace_identity("fetch");
17571757

1758-
fetch_if_missing = 0;
1759-
17601758
/* Record the command line for the reflog */
17611759
strbuf_addstr(&default_rla, "fetch");
17621760
for (i = 1; i < argc; i++)
@@ -1824,6 +1822,8 @@ int cmd_fetch(int argc, const char **argv, const char *prefix)
18241822
}
18251823
}
18261824

1825+
fetch_if_missing = 0;
1826+
18271827
if (remote) {
18281828
if (filter_options.choice || has_promisor_remote())
18291829
fetch_one_setup_partial(remote);

0 commit comments

Comments
 (0)