mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
Ignore untracked files in cherrypick
This commit is contained in:
parent
dd378f148b
commit
b61985ad87
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user