Provide a more helpful error message when we detect the user is tryin… (#15032)

Fixes https://github.com/flutter/flutter/issues/14950
This commit is contained in:
Todd Volkert
2018-03-01 12:24:25 -08:00
committed by GitHub
parent 621a963e8b
commit d2dcec22ce
2 changed files with 6 additions and 0 deletions

View File

@@ -128,6 +128,9 @@ fi
# Test if the flutter directory is a git clone (otherwise git rev-parse HEAD would fail)
if [ ! -e "$FLUTTER_ROOT/.git" ]; then
echo "Error: The Flutter directory is not a clone of the GitHub project."
echo " The flutter tool requires Git in order to operate properly;"
echo " to set up Flutter, run the following command:"
echo " git clone -b beta https://github.com/flutter/flutter.git"
exit 1
fi