Fix gitweb link config
We need to set type = gitweb. Also, the gitweb script itself is in /usr/share from the git package. Change-Id: I7e73a0ba721ed93e4acf308821ad3efd3d5eb4c8
This commit is contained in:
parent
0d533a9a94
commit
7c43778f2f
|
@ -303,10 +303,9 @@ class gerrit(
|
|||
|
||||
include ::gerrit::user
|
||||
|
||||
if ($gitweb) {
|
||||
package { 'gitweb':
|
||||
ensure => present,
|
||||
}
|
||||
# This is not needed, setting to absent for cleanup
|
||||
package { 'gitweb':
|
||||
ensure => absent,
|
||||
}
|
||||
|
||||
package { 'unzip':
|
||||
|
|
|
@ -194,6 +194,8 @@
|
|||
<% if @gitweb or @cgit or @gitea -%>
|
||||
[gitweb]
|
||||
<% if @gitweb -%>
|
||||
type = gitweb
|
||||
cgi = /usr/share/gitweb/gitweb.cgi
|
||||
revision = "?p=${project}.git;a=commitdiff;h=${commit}"
|
||||
<% end -%>
|
||||
<% if @cgit -%>
|
||||
|
|
Loading…
Reference in New Issue