]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
rename PI_REPO_CONFIG => PI_REPOBROWSE_CONFIG
authorEric Wong <e@80x24.org>
Sat, 16 Jan 2016 05:52:34 +0000 (05:52 +0000)
committerEric Wong <e@80x24.org>
Tue, 5 Apr 2016 18:58:27 +0000 (18:58 +0000)
We want to use 'repobrowse' terminology consistently despite
it being longer.  Furthermore, "repo-config" is an old git
command (nowadays git-config(1)) which may confuse some old
git users.

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

index b643f7dcef58b9327ab3e0b6361fa39ba2e79a71..800db05d4b56b645615201b890301cb4951ccb11 100644 (file)
@@ -15,7 +15,7 @@ sub new {
 }
 
 sub default_file {
-       my $f = $ENV{PI_REPO_CONFIG};
+       my $f = $ENV{PI_REPOBROWSE_CONFIG};
        return $f if defined $f;
        PublicInbox::Config::config_dir() . '/repobrowse_config';
 }
index 96763d9db3b0cfe285c1464d819190d8fdc2232b..80f1973ec6a58756b39797a4a31c0f2307ffdc32 100644 (file)
@@ -49,13 +49,13 @@ ok(-f $psgi, 'psgi example for repobrowse.psgi found');
        }
        waitpid $pid, 0;
        is($?, 0, 'fast-import succeeded');
-       my $repo_config = "$git_dir/pi_repo_config";
+       my $repobrowse_config = "$git_dir/pi_repobrowse_config";
        my $fh;
-       ok((open $fh, '>', $repo_config and
+       ok((open $fh, '>', $repobrowse_config and
                print $fh '[repo "test.git"]', "\n",
                        "\t", "path = $git_dir", "\n" and
-               close $fh), 'created repo config');
-       local $ENV{PI_REPO_CONFIG} = $repo_config;
+               close $fh), 'created repobrowse config');
+       local $ENV{PI_REPOBROWSE_CONFIG} = $repobrowse_config;
        ok($app = require $psgi, 'loaded PSGI app');
 }