From: Todd Lyons Date: Wed, 27 Nov 2013 17:37:32 +0000 (-0800) Subject: Detect when git is not in the path X-Git-Url: https://git.exim.org/buildfarm-client.git/commitdiff_plain/aab2ad4ca78fb4df24779408782af48e12d30131?hp=a5f97d98b0017c47e056f43b27c76a21b3faa0a7 Detect when git is not in the path --- 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)