From d39a8a440c9b5c59e1fa058467f64034f8974e0e Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 2 Feb 2016 04:00:08 +0000 Subject: www: support git cloning via dumb HTTP This is enabled by default, for now. Smart HTTP cloning support will be added later, but it will be optional since it can be highly CPU and memory intensive. --- public-inbox-index | 3 +++ 1 file changed, 3 insertions(+) (limited to 'public-inbox-index') diff --git a/public-inbox-index b/public-inbox-index index 53449556..578d91d5 100755 --- a/public-inbox-index +++ b/public-inbox-index @@ -57,6 +57,9 @@ foreach my $dir (@dirs) { sub index_dir { my ($git_dir) = @_; -d $git_dir or die "$git_dir does not appear to be a git repository\n"; + + system('git', "--git-dir=$git_dir", 'update-server-info') and + die "git update-server-info failed for $git_dir"; my $s = PublicInbox::SearchIdx->new($git_dir, 1); $s->index_sync; } -- cgit v1.2.3-24-ge0c7