From: Eric Wong Date: Sat, 16 Jan 2016 05:52:34 +0000 (+0000) Subject: rename PI_REPO_CONFIG => PI_REPOBROWSE_CONFIG X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=940a4d5f32ae0bed0e39da852dacf44798d7c623;p=thirdparty%2Fpublic-inbox.git rename PI_REPO_CONFIG => PI_REPOBROWSE_CONFIG 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. --- diff --git a/lib/PublicInbox/RepobrowseConfig.pm b/lib/PublicInbox/RepobrowseConfig.pm index b643f7dce..800db05d4 100644 --- a/lib/PublicInbox/RepobrowseConfig.pm +++ b/lib/PublicInbox/RepobrowseConfig.pm @@ -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'; } diff --git a/t/repobrowse_common_git.perl b/t/repobrowse_common_git.perl index 96763d9db..80f1973ec 100644 --- a/t/repobrowse_common_git.perl +++ b/t/repobrowse_common_git.perl @@ -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'); }