From 38337551b12913f2f22d60a43b0768416ba453c4 Mon Sep 17 00:00:00 2001 From: Sitaram Chamarty Date: Tue, 20 Apr 2010 21:16:24 +0530 Subject: [PATCH] (minor) helpful message when git isn't found in PATH on server --- src/gl-compile-conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gl-compile-conf b/src/gl-compile-conf index 9411c4d..5a81147 100755 --- a/src/gl-compile-conf +++ b/src/gl-compile-conf @@ -375,6 +375,12 @@ close $compiled_fh or die "$ABRT close compiled-conf failed: $!\n"; # but it turns out not everyone has "modern" gits :) my $git_version = `git --version`; +die " + *** ERROR *** + did not get a proper version number. Please see if git is in the PATH on + the server. If it is not, please edit ~/.gitolite.rc on the server and + set the \$GIT_PATH variable to the correct value\n +" unless $git_version; my ($gv_maj, $gv_min, $gv_patchrel) = ($git_version =~ m/git version (\d+)\.(\d+)\.(\d+)/); die "$ABRT I can't understand $git_version\n" unless ($gv_maj >= 1); $git_version = $gv_maj*10000 + $gv_min*100 + $gv_patchrel; # now it's "normalised"