Fix pre-commit git add after ktfmt

This commit is contained in:
PhilKes 2024-10-31 13:17:37 +01:00
parent e38e14bdd4
commit 231089a7e5

View file

@ -18,6 +18,8 @@ if [ $? -ne 0 ]; then
fi fi
# Re-stage only the initially staged Kotlin files # Re-stage only the initially staged Kotlin files
echo "$initial_staged_files" | xargs git add for file in $initial_staged_files; do
git add "$file"
done
echo "Kotlin files formatted" echo "Kotlin files formatted"