diff --git a/scripts/pre-commit b/scripts/pre-commit index 9846ade420..87a8fdc42c 100644 --- a/scripts/pre-commit +++ b/scripts/pre-commit @@ -44,8 +44,8 @@ if [ "$spotlessExitCode" -ne 0 ]; then exit "$spotlessExitCode" fi -# Spotless possibly found changes, apply them -git add -A +# Spotless possibly found changes, apply them, excluding untracked files +git add -u # Restore back the unstaged changes pop_stash