Use which to find a full path for git rather than hard coding /usr/bin/
Tomas Doran [Wed, 2 Sep 2009 23:53:27 +0000 (00:53 +0100)]
lib/gitweb.pm

index 1a6a551..dedf7a0 100755 (executable)
@@ -79,7 +79,8 @@ sub main {
 
        # core git executable to use
        # this can just be "git" if your webserver has a sensible PATH
-       our $GIT = "/usr/bin/git";
+       our $GIT = `which git`;
+       chomp($GIT);
 
        # absolute fs-path which will be prepended to the project path
        our $projectroot = "/pub/scm";