Skip to content

Commit a1ef33e

Browse files
authored
build(hooks): ignore untracked files (#1041)
1 parent 5544ffb commit a1ef33e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/pre-commit

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ if [ "$spotlessExitCode" -ne 0 ]; then
4444
exit "$spotlessExitCode"
4545
fi
4646

47-
# Spotless possibly found changes, apply them
48-
git add -A
47+
# Spotless possibly found changes, apply them, excluding untracked files
48+
git add -u
4949

5050
# Restore back the unstaged changes
5151
pop_stash

0 commit comments

Comments
 (0)