The file mode of the pre-commit hook has been changed from 100644 to 100755. This change ensures that the pre-commit hook has the necessary execution permissions, allowing it to be executed properly before each commit.
6 lines
No EOL
107 B
Bash
Executable file
6 lines
No EOL
107 B
Bash
Executable file
#!/bin/sh
|
|
|
|
added_files=$(git diff --name-only --cached --diff-filter=d)
|
|
|
|
make format
|
|
git add ${added_files} |