about summary refs log tree commit homepage
path: root/lib/PublicInbox/Repobrowse.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-03-07 08:10:55 +0000
committerEric Wong <e@80x24.org>2016-04-05 18:58:27 +0000
commit2722ba03b74a782c0f64c7a6b1d09b7b82ff5478 (patch)
treeed04fb3c8dda099ae3d20c2a3c7cda3bfdddea14 /lib/PublicInbox/Repobrowse.pm
parent4e49ab58f0ea6b32e9610a990c5bfe21900dc73b (diff)
downloadpublic-inbox-2722ba03b74a782c0f64c7a6b1d09b7b82ff5478.tar.gz
We can reuse the existing code for cloning ssoma repositories
to serve normal git repos for repobrowse.

Also, this finally adds a test to fallback to dumb cloning when
http.uploadPack is disabled for the git repository to save
CPU/memory on the host machine.
Diffstat (limited to 'lib/PublicInbox/Repobrowse.pm')
-rw-r--r--lib/PublicInbox/Repobrowse.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Repobrowse.pm b/lib/PublicInbox/Repobrowse.pm
index 82d38f90..51ec14c8 100644
--- a/lib/PublicInbox/Repobrowse.pm
+++ b/lib/PublicInbox/Repobrowse.pm
@@ -68,7 +68,7 @@ sub root_index {
 
 sub run {
         my ($self, $cgi, $method) = @_;
-        return r(405, 'Method Not Allowed') if ($method !~ /\AGET|HEAD\z/);
+        return r(405, 'Method Not Allowed') if ($method !~ /\AGET|HEAD|POST\z/);
 
         # URL syntax: / repo [ / cmd [ / path ] ]
         # cmd: log | commit | diff | tree | view | blob | snapshot