From aab2ad4ca78fb4df24779408782af48e12d30131 Mon Sep 17 00:00:00 2001 From: Todd Lyons Date: Wed, 27 Nov 2013 09:37:32 -0800 Subject: [PATCH] Detect when git is not in the path --- EximBuild/SCM.pm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/EximBuild/SCM.pm b/EximBuild/SCM.pm index df8862e..becd24e 100644 --- a/EximBuild/SCM.pm +++ b/EximBuild/SCM.pm @@ -202,6 +202,15 @@ sub checkout if (-d $target) { + # First check and see if git is in path + `which git 2>&1`; + if ($? != 0) + { + my @ret = `env`; + unshift @ret, "git not found in path\n"; + main::send_result("$target-Git",$status,\@ret); + } + chdir $target; my @branches = `git branch 2>&1`; unless (grep {/^\* bf_$branch$/} @branches) -- 2.30.2