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
|
include ::gerrit::user
|
||||||
|
|
||||||
if ($gitweb) {
|
# This is not needed, setting to absent for cleanup
|
||||||
package { 'gitweb':
|
package { 'gitweb':
|
||||||
ensure => present,
|
ensure => absent,
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
package { 'unzip':
|
package { 'unzip':
|
||||||
|
|
|
@ -194,6 +194,8 @@
|
||||||
<% if @gitweb or @cgit or @gitea -%>
|
<% if @gitweb or @cgit or @gitea -%>
|
||||||
[gitweb]
|
[gitweb]
|
||||||
<% if @gitweb -%>
|
<% if @gitweb -%>
|
||||||
|
type = gitweb
|
||||||
|
cgi = /usr/share/gitweb/gitweb.cgi
|
||||||
revision = "?p=${project}.git;a=commitdiff;h=${commit}"
|
revision = "?p=${project}.git;a=commitdiff;h=${commit}"
|
||||||
<% end -%>
|
<% end -%>
|
||||||
<% if @cgit -%>
|
<% if @cgit -%>
|
||||||
|
|
Loading…
Reference in New Issue