Skip to content

Commit ac4f0ba

Browse files
committed
Update hook
1 parent f0529ff commit ac4f0ba

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pre-commit

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@
22

33
echo "Running make lint"
44
make lint
5-
exit $?
5+
6+
for file in $(git diff --cached --name-only); do
7+
test -f "$file" && git add "$file"
8+
done

0 commit comments

Comments
 (0)