Skip to content

fix transfer.hiderefs with smart http

Jeff King git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7upload-pack: fix transfer.hiderefs over smart-httpt/t5551-http-fetch-smart.sh upload-pack.c+21 -41 reply
2/7upload-pack: do not check NULL return of lookup_unknown_objectupload-pack.c+0 -20 replies
3/7t: translate SIGINT to an exitt/test-lib.sh+1 -00 replies
4/7t: redirect stderr GIT_TRACE to descriptor 4t/test-lib.sh+1 -40 replies
5/7t: pass GIT_TRACE through Apachet/lib-httpd.sh t/lib-httpd/apache.conf+2 -00 replies
6/7t5541: move run_with_cmdline_limit to test-lib.sht/t5541-http-push-smart.sh t/test-lib.sh+6 -61 reply
7/7t5551: make EXPENSIVE test cheapert/t5551-http-fetch-smart.sh+14 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] fix transfer.hiderefs with smart http

I'm experimenting with using transfer.hiderefs on a server, and it's rather easy to cause a git client to hang when fetching from such a repo over smart http. Details are in the first patch.

There are 7 patches here, but the entirety of the fix is contained in the first one. The rest are cleanups and test enhancements I found along the way. I moved the fix to the front of the series as we probably want it to go to "maint", but the others can wait (being mostly test modifications, they should not cause regressions, but they'd possibly want more cooking time in case I broke the test suite for somebody).

The patches are:

[1/7]: upload-pack: fix transfer.hiderefs over smart-http

The fix.

[2/7]: upload-pack: do not check NULL return of lookup_unknown_object

A nearby cleanup.

[3/7]: t: translate SIGINT to an exit [4/7]: t: redirect stderr GIT_TRACE to descriptor 4 [5/7]: t: pass GIT_TRACE through Apache

These all solve irritations I had when trying to debug the test.

[6/7]: t5541: move run_with_cmdline_limit to test-lib.sh [7/7]: t5551: make EXPENSIVE test cheaper

I had thought at first that the problem was related to large http fetches, but it turned out not to be. But I think these cleanups are a good thing, as they increase the default test coverage.

-Peff