about summary refs log tree commit homepage
path: root/script/public-inbox-index
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-04-28 01:03:31 +0000
committerEric Wong <e@80x24.org>2016-04-28 01:03:31 +0000
commite983376326eab20daac9c2bfbb65b88c4fd248a2 (patch)
treeac7675388c06bcf44336420d82252845a54da618 /script/public-inbox-index
parent8317f27e2c99fd5dea393183948b373bd0df1fc0 (diff)
downloadpublic-inbox-e983376326eab20daac9c2bfbb65b88c4fd248a2.tar.gz
We should update $GIT_DIR/info/refs for dumb HTTP clients
whenever we make changes to the repository.  The best place
to update is immediately after making commits.

This fixes a bug where public-inbox-learn did not properly
update $GIT_DIR/info/refs after inserting or removing
messages.
Diffstat (limited to 'script/public-inbox-index')
-rwxr-xr-xscript/public-inbox-index2
1 files changed, 0 insertions, 2 deletions
diff --git a/script/public-inbox-index b/script/public-inbox-index
index 578d91d5..46584c1f 100755
--- a/script/public-inbox-index
+++ b/script/public-inbox-index
@@ -58,8 +58,6 @@ 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;
 }