about summary refs log tree commit homepage
path: root/t/httpd.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-04-28 01:56:07 +0000
committerEric Wong <e@80x24.org>2016-04-28 02:00:53 +0000
commit6e88eec854e125520b67735df6e4b0de52201383 (patch)
treec3e65635a68b5936f10fef5a692a99ae99d2a62f /t/httpd.t
parente983376326eab20daac9c2bfbb65b88c4fd248a2 (diff)
downloadpublic-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.t9
1 files changed, 9 insertions, 0 deletions
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);