We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d64eb1 commit 1916622Copy full SHA for 1916622
virtual_feature.pl
@@ -136,8 +136,10 @@ sub feature_setup
136
# Setup gitweb if possible
137
&$virtual_server::first_print($text{'feat_gitweb'});
138
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";
+local $gitdir =
+ -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";
143
local $src = &find_gitweb();
144
local $gitweb = "$phd/git/gitweb.cgi";
145
&virtual_server::copy_source_dest_as_domain_user($d, $src, $gitweb);
0 commit comments