Skip to content

Commit

Permalink
build(hooks): ignore untracked files (#1041)
Browse files Browse the repository at this point in the history
  • Loading branch information
christolis authored Mar 25, 2024
1 parent 5544ffb commit a1ef33e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a1ef33e

Please sign in to comment.