diff --git a/browser_patches/prepare_checkout.sh b/browser_patches/prepare_checkout.sh index 79cdfcba5e..b8f1114b44 100755 --- a/browser_patches/prepare_checkout.sh +++ b/browser_patches/prepare_checkout.sh @@ -49,7 +49,7 @@ fi if [[ $# == 2 ]]; then echo "WARNING: using custom checkout path $CHECKOUT_PATH" CHECKOUT_PATH=$2 - FRIENDLY_CHECKOUT_PATH="" + FRIENDLY_CHECKOUT_PATH="" fi # if there's no checkout folder - checkout one. @@ -72,7 +72,7 @@ fi cd $CHECKOUT_PATH # Bail out if git repo is dirty. -if [[ -n $(git status -s) ]]; then +if [[ -n $(git status -s --untracked-files=no) ]]; then echo "ERROR: $FRIENDLY_CHECKOUT_PATH has dirty GIT state - commit everything and re-run the script." exit 1 fi