diff options
author | Eric Wong <e@80x24.org> | 2016-04-28 01:56:07 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-04-28 02:00:53 +0000 |
commit | 6e88eec854e125520b67735df6e4b0de52201383 (patch) | |
tree | c3e65635a68b5936f10fef5a692a99ae99d2a62f /t/httpd.t | |
parent | e983376326eab20daac9c2bfbb65b88c4fd248a2 (diff) | |
download | public-inbox-6e88eec854e125520b67735df6e4b0de52201383.tar.gz |
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.
Diffstat (limited to 't/httpd.t')
-rw-r--r-- | t/httpd.t | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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); |