diff --git a/hack/cherry_pick_pull.sh b/hack/cherry_pick_pull.sh index cf047488bfd..5263831ce70 100755 --- a/hack/cherry_pick_pull.sh +++ b/hack/cherry_pick_pull.sh @@ -33,7 +33,7 @@ if [[ "$#" -ne 2 ]]; then exit 2 fi -if git_status=$(git status --porcelain 2>/dev/null) && [[ -n ${git_status} ]]; then +if git_status=$(git status --porcelain --untracked=no 2>/dev/null) && [[ -n "${git_status}" ]]; then echo "!!! Dirty tree. Clean up and try again." exit 1 fi