summaryrefslogtreecommitdiff
path: root/t/t5541-http-push.sh
diff options
context:
space:
mode:
authorDan McGee <dpmcgee@gmail.com>2011-05-03 15:47:29 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-05-04 20:30:28 (GMT)
commitebaaf316ca5b7317a945a1590e8dab4e39932fbb (patch)
tree372274a636334f062fb280c7911120da0521be0c /t/t5541-http-push.sh
parent2aab167adfe920bf641a3ad77be1854a8eaefe46 (diff)
downloadgit-ebaaf316ca5b7317a945a1590e8dab4e39932fbb.zip
git-ebaaf316ca5b7317a945a1590e8dab4e39932fbb.tar.gz
git-ebaaf316ca5b7317a945a1590e8dab4e39932fbb.tar.bz2
http-push: refactor curl_easy_setup madness
We were doing (nearly) the same thing all over the place, in slightly different orders, different variable names, etc. Refactor most calls into two helper functions, one for GET and one for everything else, that do the heavy lifting leaving most callsites a lot cleaner in the process. Note that the setting of CURLOPT_PUT at the callsites of curl_setup_http() which previously didn't do it (eg. locking_available(), remote_ls()) is safe, since that option is deprecated in libcurl in place of, and has the same effect as, CURLOPT_UPLOAD. Signed-off-by: Dan McGee <dpmcgee@gmail.com> Signed-off-by: Tay Ray Chuan <rctay89@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5541-http-push.sh')
0 files changed, 0 insertions, 0 deletions