Skip to content

Commit 1916622

Browse files
committed
Git binaries can be in a new location http://virtualmin.com/node/35642
1 parent 0d64eb1 commit 1916622

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

virtual_feature.pl

+4-2
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,10 @@ sub feature_setup
136136
# Setup gitweb if possible
137137
&$virtual_server::first_print($text{'feat_gitweb'});
138138
local $git = &has_command("git") || "git";
139-
local $gitdir = -e "/usr/lib/git-core/git-rev-list" ? "/usr/lib/git-core" :
140-
$git =~ /^(.*)\// ? $1 : "/usr/bin";
139+
local $gitdir =
140+
-e "/usr/lib/git-core/git-rev-list" ? "/usr/lib/git-core" :
141+
-e "/usr/libexec/git-core/git-rev-list" ? "/usr/libexec/git-core" :
142+
$git =~ /^(.*)\// ? $1 : "/usr/bin";
141143
local $src = &find_gitweb();
142144
local $gitweb = "$phd/git/gitweb.cgi";
143145
&virtual_server::copy_source_dest_as_domain_user($d, $src, $gitweb);

0 commit comments

Comments
 (0)