summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xg4
1 files changed, 4 insertions, 0 deletions
diff --git a/g b/g
index e6d3d6fadec1..e5a91f38cd53 100755
--- a/g
+++ b/g
@@ -18,6 +18,10 @@ if [ "$#" -eq "0" ] ; then
exit $?
fi
+if [ ! "`type -p git`" ]; then
+ echo "Cannot find the git binary! Is git installed and is in PATH?"
+ exit 1
+fi
pushd $(dirname $0) > /dev/null
COREDIR=$(pwd)