From 99f9b11be895223468326cadfd0dd6b22c33bdf3 Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Tue, 3 Dec 2019 11:47:49 -0700 Subject: [PATCH] chore(scripts): ignore untracked files during patch export (#124) --- browser_patches/export.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/browser_patches/export.sh b/browser_patches/export.sh index 00c09b7309..d2fadd6bbc 100755 --- a/browser_patches/export.sh +++ b/browser_patches/export.sh @@ -48,9 +48,9 @@ fi # we will use this just for beauty. if [[ $# == 2 ]]; then - echo "WARNING: using custom checkout path $CHECKOUT_PATH" + echo "WARNING: using custom checkout path $2" CHECKOUT_PATH=$2 - FRIENDLY_CHECKOUT_PATH="" + FRIENDLY_CHECKOUT_PATH="" fi # if there's no checkout folder - bail out. @@ -84,7 +84,7 @@ else fi # Check 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 - aborting export." exit 1 else