Skip to content

Commit e435837

Browse files
author
root
committed
Show Gitolite informations in settings
1 parent 878da9b commit e435837

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

Diff for: app/views/settings/_redmine_git_hosting.html.erb

+15-1
Original file line numberDiff line numberDiff line change
@@ -242,15 +242,29 @@
242242
<em><%= (GitHosting.sudo_git_to_web_user == true ? '' : GitHosting.sudo_git_to_web_user) %></em>
243243
<br />
244244
</p>
245+
245246
<p>
246247
<label><%= l(:label_sudo_web_to_git_user)%></label>
247248
<%= image_tag((GitHosting.sudo_web_to_git_user == true ? 'true.png' : 'exclamation.png'), :style => "vertical-align:bottom;") %>
248249
<em><%= (GitHosting.sudo_web_to_git_user == true ? '' : GitHosting.sudo_web_to_git_user) %></em>
249250
<br />
250251
</p>
252+
251253
<p>
252254
<label>PATH Directories</label>
253-
<%= raw (ENV['PATH']).gsub(/:/, "<br/>") %>
255+
<br/>
256+
<pre>
257+
<%= raw (ENV['PATH']).gsub(/:/, "<br/>") %>
258+
</pre>
259+
<br/>
260+
</p>
261+
262+
<p>
263+
<label>Gitolite Version</label>
264+
<br/>
265+
<pre>
266+
<%= raw GitHosting.gitolite_version %>
267+
</pre>
254268
<br/>
255269
</p>
256270

Diff for: lib/libs/git_hosting.rb

+5
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,11 @@ def self.file_exists?(filename)
217217
end
218218

219219

220+
def self.gitolite_version
221+
%x[#{GitHosting.gitolite_ssh} #{GitHosting.git_user}@localhost]
222+
end
223+
224+
220225
## GET CURRENT USER
221226
@@web_user = nil
222227
def self.web_user

0 commit comments

Comments
 (0)