Merge pull request #10963 from thockin/cherrypick-fixes

Ignore untracked files in cherrypick
This commit is contained in:
Wojciech Tyczynski 2015-07-09 11:28:11 +02:00
commit b33954c45e

View File

@ -37,7 +37,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