From 6e88eec854e125520b67735df6e4b0de52201383 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 28 Apr 2016 01:56:07 +0000 Subject: githttpbackend: fall back to dumb if smart HTTP is off Using http.getanyfile still keeps the http-backend process alive, so it's better to break out of that process and handle serving entirely within the HTTP server. --- t/httpd.t | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 't/httpd.t') diff --git a/t/httpd.t b/t/httpd.t index 28f507db..03790311 100644 --- a/t/httpd.t +++ b/t/httpd.t @@ -105,6 +105,15 @@ EOF is(system(qw(git clone -q --mirror), "http://$host:$port/$group", "$tmpdir/clone.git"), 0, 'clone successful'); + + # ensure dumb cloning works, too: + is(system('git', "--git-dir=$maindir", + qw(config http.uploadpack false)), + 0, 'disable http.uploadpack'); + is(system(qw(git clone -q --mirror), + "http://$host:$port/$group", "$tmpdir/dumb.git"), + 0, 'clone successful'); + ok(kill('TERM', $pid), 'killed httpd'); $pid = undef; waitpid(-1, 0); -- cgit v1.2.3-24-ge0c7