]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
repobrowse: shorten env name to REPOBROWSE_CONFIG
authorEric Wong <e@80x24.org>
Sat, 5 Mar 2016 07:47:10 +0000 (07:47 +0000)
committerEric Wong <e@80x24.org>
Tue, 5 Apr 2016 18:58:27 +0000 (18:58 +0000)
...From PI_REPOBROWSE_CONFIG.  The "PI_" prefix is
a bit too long and "repobrowse" is nearly an independent
project at this point from a user-perspective.

lib/PublicInbox/RepobrowseConfig.pm
t/repobrowse_common_git.perl

index 5752beedf6029e8c158dc0189bf2e8b7c487c7e3..703212d9d5f4af224a98a8ad3ed484a6c28ceab9 100644 (file)
@@ -17,7 +17,7 @@ sub new {
 }
 
 sub default_file {
-       my $f = $ENV{PI_REPOBROWSE_CONFIG};
+       my $f = $ENV{REPOBROWSE_CONFIG};
        return $f if defined $f;
        PublicInbox::Config::config_dir() . '/repobrowse_config';
 }
index 80f1973ec6a58756b39797a4a31c0f2307ffdc32..116ae5abbd87e7f827bd8109161c976fbd4d9938 100644 (file)
@@ -55,7 +55,7 @@ ok(-f $psgi, 'psgi example for repobrowse.psgi found');
                print $fh '[repo "test.git"]', "\n",
                        "\t", "path = $git_dir", "\n" and
                close $fh), 'created repobrowse config');
-       local $ENV{PI_REPOBROWSE_CONFIG} = $repobrowse_config;
+       local $ENV{REPOBROWSE_CONFIG} = $repobrowse_config;
        ok($app = require $psgi, 'loaded PSGI app');
 }