Git fork

Merge branch 'ew/fetch-no-write-fetch-head-fix'

* ew/fetch-no-write-fetch-head-fix:
fetch: pass --no-write-fetch-head to subprocesses

+22
+2
builtin/fetch.c
··· 1883 1883 strvec_push(argv, "--ipv4"); 1884 1884 else if (family == TRANSPORT_FAMILY_IPV6) 1885 1885 strvec_push(argv, "--ipv6"); 1886 + if (!write_fetch_head) 1887 + strvec_push(argv, "--no-write-fetch-head"); 1886 1888 } 1887 1889 1888 1890 /* Fetch multiple remotes in parallel */
+7
t/t5514-fetch-multiple.sh
··· 58 58 test_cmp expect output) 59 59 ' 60 60 61 + test_expect_success 'git fetch --all --no-write-fetch-head' ' 62 + (cd test && 63 + rm -f .git/FETCH_HEAD && 64 + git fetch --all --no-write-fetch-head && 65 + test_path_is_missing .git/FETCH_HEAD) 66 + ' 67 + 61 68 test_expect_success 'git fetch --all should continue if a remote has errors' ' 62 69 (git clone one test2 && 63 70 cd test2 &&
+13
t/t5526-fetch-submodules.sh
··· 167 167 verify_fetch_result actual.err 168 168 ' 169 169 170 + test_expect_success "fetch --recurse-submodules honors --no-write-fetch-head" ' 171 + ( 172 + cd downstream && 173 + git submodule foreach --recursive \ 174 + sh -c "cd \"\$(git rev-parse --git-dir)\" && rm -f FETCH_HEAD" && 175 + 176 + git fetch --recurse-submodules --no-write-fetch-head && 177 + 178 + git submodule foreach --recursive \ 179 + sh -c "cd \"\$(git rev-parse --git-dir)\" && ! test -f FETCH_HEAD" 180 + ) 181 + ' 182 + 170 183 test_expect_success "submodule.recurse option triggers recursive fetch" ' 171 184 add_submodule_commits && 172 185 (