Commit 8cb062f
fetch-pack: accept "pack" output for packfile URIs
When index-pack finds an existing keep file it reports pack rather than
keep. Accept either result from http-fetch, and only register a keep
lockfile when this fetch created it.
Read the pack/keep prefix and hash without consuming any following fsck
output, validate the reported pack hash against the advertised hash, and
exercise a packfile URI fetch with a pre-existing keep file.
Signed-off-by: Ted Nyman <tnyman@openai.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent d2c25ff commit 8cb062f
2 files changed
Lines changed: 49 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1887 | 1887 | | |
1888 | 1888 | | |
1889 | 1889 | | |
| 1890 | + | |
1890 | 1891 | | |
1891 | 1892 | | |
1892 | | - | |
| 1893 | + | |
1893 | 1894 | | |
1894 | 1895 | | |
1895 | 1896 | | |
| |||
1907 | 1908 | | |
1908 | 1909 | | |
1909 | 1910 | | |
1910 | | - | |
1911 | | - | |
1912 | | - | |
| 1911 | + | |
| 1912 | + | |
| 1913 | + | |
| 1914 | + | |
| 1915 | + | |
1913 | 1916 | | |
1914 | | - | |
1915 | | - | |
1916 | | - | |
1917 | | - | |
1918 | | - | |
1919 | | - | |
| 1917 | + | |
| 1918 | + | |
| 1919 | + | |
| 1920 | + | |
| 1921 | + | |
1920 | 1922 | | |
1921 | 1923 | | |
1922 | 1924 | | |
| |||
1925 | 1927 | | |
1926 | 1928 | | |
1927 | 1929 | | |
1928 | | - | |
| 1930 | + | |
1929 | 1931 | | |
1930 | 1932 | | |
1931 | 1933 | | |
1932 | 1934 | | |
1933 | 1935 | | |
1934 | | - | |
1935 | | - | |
1936 | | - | |
1937 | | - | |
| 1936 | + | |
| 1937 | + | |
| 1938 | + | |
| 1939 | + | |
| 1940 | + | |
1938 | 1941 | | |
1939 | 1942 | | |
1940 | 1943 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1291 | 1291 | | |
1292 | 1292 | | |
1293 | 1293 | | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
1294 | 1325 | | |
1295 | 1326 | | |
1296 | 1327 | | |
| |||
0 commit comments