summaryrefslogtreecommitdiff
path: root/http-walker.c
diff options
context:
space:
mode:
authorJonathan Tan <jonathantanmy@google.com>2020-06-10 20:57:15 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-06-11 01:06:33 (GMT)
commit9cb3cab56063754d9ee5bb27886c616ca1aec134 (patch)
treed75c336035b95d0adcedc77087c416719670b1da /http-walker.c
parent339a9840ef8258a75e07fee640ccceecd20ade31 (diff)
downloadgit-9cb3cab56063754d9ee5bb27886c616ca1aec134.zip
git-9cb3cab56063754d9ee5bb27886c616ca1aec134.tar.gz
git-9cb3cab56063754d9ee5bb27886c616ca1aec134.tar.bz2
http: use --stdin when indexing dumb HTTP pack
When Git fetches a pack using dumb HTTP, (among other things) it invokes index-pack on a ".pack.temp" packfile, specifying the filename as an argument. A future commit will require the aforementioned invocation of index-pack to also generate a "keep" file. To use this, we either have to use index-pack's naming convention (because --keep requires the pack's filename to end with ".pack") or to pass the pack through stdin. Of the two, it is simpler to pass the pack through stdin. Thus, teach http to pass --stdin to index-pack. As a bonus, the code is now simpler. Signed-off-by: Jonathan Tan <jonathantanmy@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'http-walker.c')
0 files changed, 0 insertions, 0 deletions