The Gitweb or Gerrit server is registered with the adapter.
yum install perl-JSON
yum install perl-TermReadKey
By default, the Git adapter banner is shown on all pages of a registered Gitweb or Gerrit server. You can edit the banner_display_rules.js file in your Gitweb or Gerrit installation to customize the pages on which the Git adapter banner shows.
The variable bannerDisplayRulesDefault in the banner_display_rules.js file determines the default behavior for the banner. A value of "D" (the default value) means that the banner shows on all pages, except for Git projects where you explicitly hide the banner. A value of "H" means that the banner is hidden on all pages, except for Git projects where you explicitly show the banner.
The variable bannerDisplayRules in the banner_display_rules.js file is where you override the default behavior, indicating individual Git projects for which you want to show or hide the banner.
For more information about how to set these variables and the example syntax, including how to use wildcards in your specified Git project names to show or hide the banner on all matching Git projects, see the banner_display_rules.js file.
To make it easy to show the Git adapter banner on all registered Git projects, a script sync_rules.pl is provided to gather the names of all registered Git projects and add them to the generatedBannerDisplayRules variable in the banner_display_rules.js file.
In this procedure, you follow the steps to show the Git adapter banner on registered Git projects only.